






/* استایل‌های اصلی */
.doktoryar-doctors-list {
    max-width: 1400px; /* عرض افزایش یافت تا در مانیتورهای بزرگ فضای بیشتری داشته باشد */
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* هدر و نوار جستجو */
.doctors-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.doctors-header h1 {
    margin: 0 0 25px 0;
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* فرم جستجوی اصلی */
#main-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

#main-search-form .main-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#main-search-form .main-search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

#main-search-form .main-search-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#main-search-form .main-search-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#main-search-form .advanced-search-toggle {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

#main-search-form .advanced-search-toggle:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

#main-search-form .advanced-search-toggle i {
    transition: transform 0.3s ease;
}

#main-search-form .advanced-search-toggle.active i {
    transform: rotate(180deg);
}

/* فرم جستجوی پیشرفته */
.advanced-filter {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advanced-filter.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-filter {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-reset {
    background: #f56565;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

.doctors-grid {
    display: grid;
    /* این خط جادویی، تعداد ستون‌ها را بر اساس عرض مجاز قالب شما به صورت خودکار تنظیم می‌کند */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.doctor-card {
    background: rgba(251, 251, 255, 0.863);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(5, 240, 208, 0.596);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative; /* برای تنظیم موقعیت عکس ضروری است */
    
    /* ایجاد فضای خالی برای عکسی که بیرون زده است */
    margin-top: 40px; /* فاصله از بالا تا کارت‌های بالایی به هم نچسبند */
    padding-top: 65px; /* هل دادن متن‌های داخل کارت به پایین تا زیر عکس نروند */
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


.doctor-image {
    width: 100px; /* عرض عکس */
    height: 100px; /* ارتفاع عکس (برابر با عرض تا مربع شود) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%; /* تبدیل مربع به دایره کامل */
    
    /* تنظیم موقعیت (نصف بیرون، نصف داخل) */
    position: absolute;
    top: -30px; /* دقیقاً نصف ارتفاع عکس (120/2) به سمت بالا کشیده می‌شود */
    left: 50%; /* هل دادن به وسط صفحه */
    transform: translateX(-50%); /* تنظیم دقیق در مرکز کارت */
    
    /* زیبایی بصری */
    border: 2px solid #6665654d; /* یک حاشیه سفید ضخیم که عکس را از پس‌زمینه جدا کند */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* سایه زیر عکس */
    z-index: 2; /* قرار گرفتن روی همه چیز */
    
    display: flex;
    align-items: center;
    justify-content: center;
}



.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* عکس هم باید دایره‌ای شود */
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.08); /* زوم شدن ملایم عکس هنگام رفتن موس روی کارت */
}

.no-image {
    font-size: 60px;
    color: white;
    opacity: 0.8;
}

.doctor-info {
    padding-top: 10px; /* پدینگ بالا را صفر کردیم چون در خود کارت تنظیم شد */
    text-align: center; /* وسط‌چین کردن متن‌ها */
}

.doctor-info h3 {
    margin: 0 0 0px 0;
    color: #333;
    font-size: 1.3rem;
}

.specialty {
    color: #dfe0e7;
    font-weight: 600;
    font-size: 14px;
    position: absolute;
    align-items: right;
    padding-right: 3px;
    background-color: #696868;

}

.location-info {
    display: flex;
    align-items: center;
    justify-content: left; /* اضافه کردن این خط برای وسط‌چین شدن */
    gap: 8px;
    margin-bottom: 0px;
    color: #f3eded;
    font-size: 14px;
    padding-left: 5px;
        background-color: #696868;

}

.location-icon {
    font-size: 16px;
}

.fee-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-label {
    color: #666;
    font-size: 14px;
}

.fee-amount {
    color: #944d12;
    font-weight: 700;
    font-size: 16px;
}

.doctor-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.btn-view, .btn-book {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view {
    background: #e8f4ff;
    color: #2196F3;
}

.btn-view:hover {
    background: #2196F3;
    color: white;
}

.btn-book {
    background: #e4caad;
    color: #151b15;
}

.btn-book:hover {
    background: #4CAF50;
    color: white;
}

/* پیام عدم یافتن نتیجه */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.btn-show-all {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-show-all:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* آمار جستجو */
.search-stats {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.search-stats p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* رسپانسیو و موبایل */
/* رسپانسیو و موبایل - بازطراحی شده برای زیبایی بیشتر */
@media (max-width: 768px) {
    /* تنظیمات هدر برای موبایل */
    .doctors-header {
        padding: 20px 15px;
        border-radius: 15px;
        margin-bottom: 20px;
    }

    .doctors-header h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    /* استایل جدید و اپلیکیشنی فرم جستجو در موبایل */
    #main-search-form {
        display: grid;
        grid-template-columns: 1fr 1fr; /* دو ستون مساوی برای دکمه‌ها */
        gap: 10px;
        background: rgba(255, 255, 255, 0.15); /* یک پس‌زمینه شیشه‌ای ملایم دور فرم */
        padding: 12px;
        border-radius: 20px;
    }
    
    #main-search-form .main-search-input {
        grid-column: 1 / -1; /* کادر جستجو کل عرض را می‌گیرد */
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        text-align: center; /* وسط‌چین کردن متن برای زیبایی در موبایل */
        border-radius: 50px;
        box-sizing: border-box;
    }
    
    #main-search-form .main-search-btn,
    #main-search-form .advanced-search-toggle {
        width: 100%;
        padding: 12px 10px;
        font-size: 13px; /* فونت کمی کوچکتر برای جا شدن در کنار هم */
        justify-content: center;
        border-radius: 50px;
        box-sizing: border-box;
        margin: 0; /* حذف مارجین‌های اضافی */
    }

    /* تنظیمات فیلتر پیشرفته در موبایل */
    .advanced-filter {
        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
    }
    
    .btn-filter,
    .btn-reset {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .main-search-input::placeholder {
    font-size: 12px; 
    color: #f38021;
  }
}


/* انیمیشن‌های اضافی */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل برای حالت لودینگ */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}




/* افکت زوم اوت/زوم این سایه آبی برای داکتران آنلاین */
.doctor-image.is-online {
    animation: blue-shadow-pulse 2s infinite;
    border-color: #2196F3; /* تغییر رنگ حاشیه به آبی برای هماهنگی بیشتر */
}

@keyframes blue-shadow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

/* استایل نشانگر آنلاین (اگر از قبل اضافه نکرده‌اید) */
.online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #3973e0;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-inline-start: 0px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.online-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}


/* تنظیمات دربرگیرنده اسم و تیک آبی */
.doctor-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 6px; /* فاصله بین اسم و تیک آبی */
    margin-bottom: 5px; /* فاصله از تخصص داکتر */
}

/* تنظیمات خود تگ نام که داخل Wrapper قرار گرفته است */
.doctor-name-wrapper h3 {
    margin: 0 !important; /* حذف فاصله پیش‌فرض برای تراز شدن با تیک */
}

/* استایل آیکون تیک آبی */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verified-badge svg {
    width: 23px; /* اندازه تیک آبی */
    height: 23px;
}


