/**
 * أنماط CSS لنظام الإعلانات والأطباء المميزين
 */

/* =============================================
   شارات المستويات
   ============================================= */

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.badge-silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    animation: goldShine 3s ease-in-out infinite;
}

.badge-platinum {
    background: linear-gradient(135deg, #E5E4E2, #B8B8B8, #E5E4E2);
    color: #333;
    box-shadow: 0 2px 12px rgba(229, 228, 226, 0.6);
    animation: platinumGlow 2s ease-in-out infinite;
}

@keyframes goldShine {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.8);
    }
}

@keyframes platinumGlow {

    0%,
    100% {
        box-shadow: 0 2px 12px rgba(229, 228, 226, 0.6);
    }

    50% {
        box-shadow: 0 4px 20px rgba(229, 228, 226, 1), 0 0 30px rgba(180, 180, 255, 0.3);
    }
}

/* =============================================
   قسم الأطباء المميزين
   ============================================= */

.featured-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.featured-section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.featured-section-title i {
    color: #FFD700;
    font-size: 1.8rem;
}

/* سلايدر الأطباء المميزين */
.featured-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.featured-slider::-webkit-scrollbar {
    height: 8px;
}

.featured-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.featured-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* بطاقة الكيان المميز */
.featured-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

/* إطار ذهبي للباقة الذهبية */
.featured-card.plan-gold {
    border: 2px solid #FFD700;
}

/* إطار بلاتيني متوهج */
.featured-card.plan-platinum {
    border: 2px solid #E5E4E2;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(180, 180, 255, 0.2);
}

.featured-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.featured-card-header i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.featured-card-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.featured-card-body {
    padding: 1.2rem;
}

.featured-card-body p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}

.featured-card-body p i {
    color: var(--secondary-color);
    width: 20px;
}

.featured-card-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid #eee;
}

.featured-card-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.featured-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

/* =============================================
   البانرات الإعلانية
   ============================================= */

.ad-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ad-banner:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-banner a {
    display: block;
}

.ad-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* بانر Hero */
.ad-hero {
    max-height: 200px;
}

.ad-hero img {
    object-fit: cover;
    height: 200px;
}

/* بانر الشريط الجانبي */
.ad-sidebar {
    max-width: 300px;
    margin: 0 auto;
}

/* بانر بين النتائج */
.ad-between_results {
    max-width: 728px;
    margin: 1.5rem auto;
}

/* بانر التذييل */
.ad-footer {
    max-width: 970px;
    margin: 2rem auto;
}

/* =============================================
   أزرار التنقل في السلايدر
   ============================================= */

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =============================================
   البطاقات العادية مع شارة مميز
   ============================================= */

.doctor-card.is-featured,
.card.is-featured {
    position: relative;
}

.doctor-card.is-featured.plan-gold,
.card.is-featured.plan-gold {
    border: 2px solid #FFD700;
}

.doctor-card.is-featured.plan-platinum,
.card.is-featured.plan-platinum {
    border: 2px solid #E5E4E2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 0 15px rgba(180, 180, 255, 0.2);
}

/* =============================================
   تنسيقات الجوال
   ============================================= */

@media (max-width: 768px) {
    .featured-section {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    .featured-section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-section-title {
        font-size: 1.2rem;
    }

    .featured-card {
        flex: 0 0 250px;
    }

    .ad-hero img {
        height: 120px;
    }

    .plan-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

/* =============================================
   تأثيرات خاصة للباقات العليا
   ============================================= */

.featured-card.plan-platinum::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 60%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* =============================================
   سلايدر الإعلانات المتعددة
   ============================================= */

.ad-slider-container {
    position: relative;
    width: 100%;
    max-width: 728px;
    margin: 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.ad-slider-wrapper {
    position: relative;
    width: 100%;
}

.ad-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.ad-slide.active {
    display: block;
}

.ad-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-slide a {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* نقاط التنقل */
.ad-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ad-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.ad-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.ad-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* =============================================
   إعلانات التذييل
   ============================================= */

.footer-ads-wrapper {
    max-width: 970px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.sidebar-ads-wrapper {
    max-width: 300px;
    margin: 1rem auto;
}

/* =============================================
   تنسيقات شارات في قوائم الكيانات
   ============================================= */

.doctor-card.is-featured,
.dentist-card.is-featured,
.hospital-card.is-featured,
.laboratory-card.is-featured,
.center-card.is-featured {
    position: relative;
    border-top: 4px solid #FFD700;
}

.doctor-card.is-featured.plan-platinum,
.dentist-card.is-featured.plan-platinum,
.hospital-card.is-featured.plan-platinum,
.laboratory-card.is-featured.plan-platinum,
.center-card.is-featured.plan-platinum {
    border-top: 4px solid #E5E4E2;
}

.doctor-card.is-featured.plan-silver,
.dentist-card.is-featured.plan-silver,
.hospital-card.is-featured.plan-silver,
.laboratory-card.is-featured.plan-silver,
.center-card.is-featured.plan-silver {
    border-top: 4px solid #C0C0C0;
}

/* شارة المميز في بطاقات القوائم */
.list-featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0 0 0 8px;
    z-index: 5;
}

.list-featured-badge.badge-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.list-featured-badge.badge-platinum {
    background: linear-gradient(135deg, #E5E4E2, #B8B8B8);
    color: #333;
}

.list-featured-badge.badge-silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #333;
}