/* Enhanced Childcare System Styles */
/* css/enhanced-childcare.css */

.enhanced-childcare {
    padding: 2rem 0;
}

.childcare-header {
    text-align: center;
    margin-bottom: 3rem;
}

.childcare-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.childcare-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f2f5;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.section-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.rotation-indicator {
    color: #95a5a6;
    font-size: 0.8rem;
    font-style: italic;
}

/* Top Choice Section */
.top-choice-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.top-choice-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.top-choice-section .section-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.top-choice-section .section-header h3 {
    color: white;
}

.top-choice-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    color: #2c3e50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.provider-badge {
    position: absolute;
    top: -10px;
    left: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.provider-badge.premium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.provider-badge.verified {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.provider-badge.standard {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.provider-badge.new {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.provider-avatar {
    position: relative;
}

.provider-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.online-indicator.online {
    background: #27ae60;
    animation: pulse 2s infinite;
}

.online-indicator.offline {
    background: #95a5a6;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.provider-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
}

.stars.star-small {
    font-size: 1rem;
}

.rating-number {
    font-weight: 600;
    color: #2c3e50;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-meta span {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #495057;
}

.provider-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.provider-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Rising Stars Section */
.rising-stars-section {
    margin-bottom: 3rem;
}

.rising-stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rising-star-badge {
    position: absolute;
    top: -8px;
    right: 1rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
    to { box-shadow: 0 0 15px rgba(243, 156, 18, 0.8); }
}

.no-rising-stars {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* All Providers Section */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Provider Cards */
.provider-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.provider-card.premium {
    border-color: #f39c12;
}

.provider-card.verified {
    border-color: #27ae60;
}

.provider-card.standard {
    border-color: #3498db;
}

.provider-card.new {
    border-color: #9b59b6;
}

.provider-card.rising-star {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e6ed;
}

.provider-basic-info {
    flex: 1;
}

.provider-basic-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.provider-rating-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provider-tier-badge {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.provider-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.25rem 0;
}

.provider-availability {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.provider-availability strong {
    color: #495057;
}

.provider-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-sm.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-sm.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-sm.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-childcare {
        padding: 1rem 0;
    }
    
    .childcare-header h2 {
        font-size: 2rem;
    }
    
    .top-choice-section {
        padding: 1.5rem;
    }
    
    .top-choice-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .provider-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
    }
    
    .rising-stars-grid {
        grid-template-columns: 1fr;
    }
    
    .provider-details {
        grid-template-columns: 1fr;
    }
    
    .provider-card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .top-choice-section {
        padding: 1rem;
    }
    
    .top-choice-card {
        padding: 1.5rem;
    }
    
    .provider-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .provider-info h4 {
        font-size: 1.25rem;
    }
    
    .provider-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .provider-card {
        padding: 1rem;
    }
    
    .provider-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .provider-avatar-small {
        width: 50px;
        height: 50px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .enhanced-childcare {
        color: #ecf0f1;
    }
    
    .provider-card {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .provider-card:hover {
        background: #34495e;
    }
    
    .provider-meta span {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .provider-availability {
        background: #34495e;
    }
    
    .filter-controls select {
        background: #2c3e50;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
    
    .detail-item {
        color: #bdc3c7;
    }
}

/* Accessibility Improvements */
.provider-card:focus-within {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.btn-sm:focus,
.filter-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .provider-card {
        border-width: 3px;
    }
    
    .provider-badge,
    .rising-star-badge,
    .specialty-tag {
        border: 2px solid currentColor;
    }
    
    .stars {
        filter: contrast(2);
    }
}
