/* =========================================
   Doctors Page Styles
   ========================================= */

/* Hero Section */
.doctors-hero-section h1 {
    font-family: 'FontBold', sans-serif;
    color: #111827;
}

.search-filter-wrapper {
    transition: all 0.3s ease;
}

.search-filter-wrapper:hover {
    box-shadow: 0 10px 30px rgba(239, 48, 103, 0.1);
}

/* Custom Select Styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23EF3067'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Doctor Cards Grid */
.doctors-grid-section {
    min-height: 400px;
}

.doctor-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.doctor-card-inner {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid #FFC0CA;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover .doctor-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(239, 48, 103, 0.15);
    border-color: #EF3067;
}

/* Doctor Image */
.doctor-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #FFF1F4 0%, #FFC0CA 100%);
}

.doctor-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}

.verified-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #EF3067;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(239, 48, 103, 0.3);
}

/* Doctor Info */
.doctor-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-family: 'FontBold', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 6px;
    height: 41.6px; /* Fixed height for 2 lines: 16px * 1.3 * 2 = 41.6px */
    display: flex;
    align-items: flex-start;
}

.doctor-specialty {
    font-family: 'FontMedium', sans-serif;
    font-size: 13px;
    color: #EF3067;
    margin-bottom: 12px;
}

/* Rating */
.doctor-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.rating-star {
    width: 16px;
    height: 16px;
    color: #EF3067;
}

.rating-value {
    font-family: 'FontBold', sans-serif;
    font-size: 14px;
    color: #111827;
}

.rating-count {
    font-size: 13px;
    color: #6B7280;
}

/* Badges */
.doctor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge {
    font-size: 11px;
    padding: 5px 10px;
    background: #FFF1F4;
    border: 1px solid #FFC0CA;
    border-radius: 14px;
    color: #111827;
    white-space: nowrap;
}

/* Experience */
.doctor-experience {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.experience-icon {
    width: 16px;
    height: 16px;
    color: #6B7280;
}

.doctor-experience span {
    font-size: 13px;
    color: #6B7280;
}

/* CTA */
.doctor-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #FFF1F4;
    border-radius: 18px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-cta {
    background: #EF3067;
}

.cta-text {
    font-family: 'FontMedium', sans-serif;
    font-size: 14px;
    color: #EF3067;
    transition: color 0.3s ease;
}

.doctor-card:hover .cta-text {
    color: white;
}

.cta-arrow {
    width: 18px;
    height: 18px;
    color: #EF3067;
    transition: all 0.3s ease;
}

.doctor-card:hover .cta-arrow {
    color: white;
    transform: translateX(4px);
}

/* Placeholder Card */
.doctor-card-placeholder {
    background: white;
    border-radius: 32px;
    border: 2px dashed #E5E7EB;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-inner {
    text-align: center;
    padding: 40px;
}

.placeholder-icon {
    margin-bottom: 16px;
}

.placeholder-text {
    font-family: 'FontMedium', sans-serif;
    font-size: 16px;
    color: #9CA3AF;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results.hidden {
    display: none;
}

.no-results-inner {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    color: #E5E7EB;
    margin: 0 auto 24px;
}

.no-results-title {
    font-family: 'FontBold', sans-serif;
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.no-results-text {
    font-size: 16px;
    color: #6B7280;
}

/* CTA Section */
.doctors-cta-section {
    margin-top: 80px;
}

.cta-wrapper {
    background: linear-gradient(135deg, #EF3067 0%, #C2185B 100%);
    border-radius: 48px;
    padding: 60px 40px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'FontBold', sans-serif;
    font-size: 32px;
    line-height: 1.3;
    color: white;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: white;
    color: #EF3067;
    font-family: 'FontBold', sans-serif;
    font-size: 16px;
    border-radius: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctors-hero-section h1 {
        font-size: 32px;
    }

    .search-filter-wrapper {
        padding: 20px;
        border-radius: 24px;
    }

    .doctor-card-inner {
        border-radius: 24px;
    }

    .doctor-info {
        padding: 20px;
    }

    .cta-wrapper {
        border-radius: 32px;
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-description {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .doctor-badges {
        flex-direction: column;
    }

    .badge {
        width: 100%;
        text-align: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-card {
    animation: fadeIn 0.5s ease forwards;
}

.doctor-card:nth-child(1) { animation-delay: 0.1s; }
.doctor-card:nth-child(2) { animation-delay: 0.2s; }
.doctor-card:nth-child(3) { animation-delay: 0.3s; }
.doctor-card:nth-child(4) { animation-delay: 0.4s; }
.doctor-card:nth-child(5) { animation-delay: 0.5s; }
.doctor-card:nth-child(6) { animation-delay: 0.6s; }
