/* IMG Medical Directory Styles for ListingPro */

/* IMG Score Circle Enhancements */
.img-score-circle {
    position: relative;
}

.img-score-circle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

/* Requirements Grid Responsive */
@media (max-width: 768px) {
    .img-requirements-section > div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Search Filter Enhancements */
.img-search-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.img-search-filters h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.img-search-filters h4 i {
    margin-right: 8px;
    color: #3498db;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* IMG Badge Styles */
.img-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.img-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.img-badge.visa-j1 {
    background: #e8f5e8;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.img-badge.visa-h1b {
    background: #e3f2fd;
    color: #2196f3;
    border: 1px solid #2196f3;
}

.img-badge.usce-not-required {
    background: #e8f5e8;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.img-badge.usce-required {
    background: #fff3e0;
    color: #ff9800;
    border: 1px solid #ff9800;
}

.img-badge.step1-pf {
    background: #e8f5e8;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.img-badge.verified {
    background: #e3f2fd;
    color: #2196f3;
    border: 1px solid #2196f3;
}

/* Listing Card Enhancements */
.listing-item .img-score-mini {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.listing-item .img-score-mini.excellent {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.listing-item .img-score-mini.good {
    background: linear-gradient(135deg, #3498db, #5dade2);
}

.listing-item .img-score-mini.fair {
    background: linear-gradient(135deg, #f39c12, #f7dc6f);
}

.listing-item .img-score-mini.poor {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
}

/* Quick Facts Section */
.img-quick-facts {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.img-quick-facts h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.img-quick-facts h4 i {
    margin-right: 8px;
    color: #3498db;
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.fact-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.fact-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.fact-label {
    font-size: 0.9rem;
    color: #666;
}

/* Compensation Table */
.compensation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.compensation-table th {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.compensation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.compensation-table tr:nth-child(even) {
    background: #f9f9f9;
}

.compensation-table tr:hover {
    background: #e3f2fd;
}

/* Contact Cards */
.img-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-role {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.contact-name {
    font-size: 1.1rem;
    color: #3498db;
    margin-bottom: 8px;
}

.contact-info {
    color: #666;
    font-size: 0.9rem;
}

.contact-info i {
    width: 18px;
    margin-right: 8px;
    color: #999;
}

/* Advanced Search Toggle */
.img-advanced-search {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 0;
}

.img-advanced-search:hover {
    background: #3498db;
    color: white;
}

.img-advanced-search.active {
    background: #3498db;
    color: white;
}

/* Loading States */
.img-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.img-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3498db;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .quick-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .img-contacts {
        grid-template-columns: 1fr;
    }
    
    .compensation-table {
        font-size: 0.9rem;
    }
    
    .compensation-table th,
    .compensation-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .img-requirements-section,
    .img-quick-facts,
    .compensation-table {
        break-inside: avoid;
    }
    
    .img-score-circle {
        border: 2px solid #333 !important;
        color: #333 !important;
    }
}