/* Doctors Page Styles */

/* Hero Section */
.doctors-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.doctors-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23667eea" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
}

.doctors-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.doctors-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.doctors-hero p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.doctors-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.doctors-hero .stat {
    text-align: center;
}

.doctors-hero .stat .number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.doctors-hero .stat .label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Filter Section */
.doctors-filter {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.filter-header p {
    color: #6b7280;
    font-size: 16px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.specialty-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

/* Doctors List */
.doctors-list {
    padding: 80px 0;
    background: #f8fafc;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.doctor-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doctor-card:hover::before {
    transform: scaleX(1);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Overlay với nút Xem chi tiết */
.doctor-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 20px;
}

.doctor-card:hover .doctor-card-overlay {
    opacity: 1;
    visibility: visible;
}

.btn-view-detail {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
}

.doctor-card:hover .btn-view-detail {
    transform: translateY(0);
}

.btn-view-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-view-detail i {
    font-size: 18px;
}

.doctor-image {
    position: relative;
    margin-bottom: 20px;
}

.doctor-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.doctor-status {
    position: absolute;
    bottom: 0;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: white;
    border: 1px solid #e5e7eb;
}

.doctor-status.online {
    color: #10b981;
}

.doctor-status.online i {
    color: #10b981;
}

.doctor-status.offline {
    color: #6b7280;
}

.doctor-status.offline i {
    color: #6b7280;
}

.doctor-status.busy {
    color: #f59e0b;
}

.doctor-status.busy i {
    color: #f59e0b;
}

.doctor-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.doctor-info .specialty {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.detail-item i {
    width: 14px;
    color: #9ca3af;
}

.doctor-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.doctor-price .price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.doctor-price .unit {
    font-size: 13px;
    color: #6b7280;
}

.doctor-actions {
    display: flex;
    gap: 8px;
}

.doctor-actions button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-book {
    background: #667eea;
    color: white;
}

.btn-book:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-chat {
    background: #10b981;
    color: white;
}

.btn-chat:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-chat:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-video {
    background: #f59e0b;
    color: white;
}

.btn-video:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-video:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Load More */
.load-more {
    text-align: center;
}

.btn-load-more {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Active nav link */
.nav a.active {
    color: #667eea;
    position: relative;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctors-hero {
        padding: 80px 0 60px;
    }
    
    .doctors-hero h1 {
        font-size: 32px;
    }
    
    .doctors-hero .hero-stats {
        gap: 40px;
    }
    
    .doctors-hero .stat .number {
        font-size: 28px;
    }
    
    .doctors-filter {
        padding: 40px 0;
    }
    
    .filter-header h2 {
        font-size: 24px;
    }
    
    .specialty-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .doctor-card {
        padding: 20px;
    }
    
    .doctor-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .doctor-actions button {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .doctors-hero .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .filter-controls {
        gap: 20px;
    }
    
    .search-box {
        max-width: none;
    }
    
    .specialty-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctor-card {
        padding: 16px;
    }
    
    .doctor-image img {
        width: 60px;
        height: 60px;
    }
    
    .doctor-status {
        left: 45px;
    }
}
