/* =====================================================
   sec3-style.css — تنسيقات خاصة بصفحة تالتة ثانوي VIP
   منصة هكر الفيزياء | مستر عادل بسيوني
   ===================================================== */

/* ── HEADER ── */
.sec3-header {
    background: linear-gradient(135deg, #0d1117 0%, #111827 40%, #1f2937 100%) !important;
    border-bottom: 3px solid #d4af37 !important;
    padding-top: 56px !important;
    padding-bottom: 220px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    position: relative !important;
    overflow: visible !important;
}

/* ── SEC3 GLASS HERO FRAME ── */
.sec3-hero-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    text-align: right !important;
    width: calc(100% - 48px) !important;
    max-width: 1100px !important;
    margin: 0 auto !important;

    /* Glassmorphism بألوان داكنة تناسب VIP */
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    border-radius: 28px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212,175,55,0.05) !important;
    padding: 44px 52px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
    gap: 0 !important;
}

/* خط إضاءة ذهبي فوق الفريم */
.sec3-hero-layout::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #d4af37, #f1c40f, transparent) !important;
    opacity: 0.9 !important;
}

/* ── SEC3 HERO TEXT ── */
.sec3-hero-layout .hero-text-side {
    flex: 1 1 auto !important;
    padding: 0 52px 44px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    justify-content: center !important;
    z-index: 2 !important;
    min-width: 0 !important;
}

.sec3-hero-heading {
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.25 !important;
    color: #fff !important;
}

.highlight-gold {
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── HERO BUTTONS ── */
.btn-gold-hero {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    color: #111 !important;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}

.btn-gold-hero:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-ghost-sec3 {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-ghost-sec3:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── SEC3 IMAGE SIDE ── */
.sec3-hero-layout .hero-image-side {
    flex: 0 0 420px !important;
    width: 420px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-end !important;
}

.sec3-hero-layout .hero-personal-img {
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    object-position: bottom !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: bottom !important;
    filter: drop-shadow(0 -10px 28px rgba(212,175,55,0.15)) drop-shadow(0 10px 30px rgba(0,0,0,0.4)) !important;
}

/* ── STATS BAR للصفحة الفرعية ── */
.sec3-stats-bar {
    max-width: 1100px;
    margin: -80px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 20;
}

.sec3-stats-inner {
    background: #1a1a2e;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid rgba(212,175,55,0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .sec3-hero-layout .hero-image-side {
        flex: 0 0 340px !important;
        width: 340px !important;
    }
    .sec3-hero-layout .hero-personal-img {
        max-width: 340px !important;
        max-height: 440px !important;
    }
}

@media (max-width: 900px) {
    .sec3-header {
        padding-bottom: 160px !important;
    }
    .sec3-hero-layout {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 36px 20px 0 !important;
        border-radius: 20px !important;
        width: calc(100% - 30px) !important;
    }
    .sec3-hero-layout .hero-text-side {
        align-items: center !important;
        padding: 0 0 24px !important;
    }
    .sec3-hero-heading { font-size: 1.9rem !important; }
    .sec3-hero-layout .hero-image-side {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 300px !important;
        align-self: center !important;
    }
    .sec3-hero-layout .hero-personal-img {
        max-width: 100% !important;
        max-height: 300px !important;
    }
}

@media (max-width: 600px) {
    .sec3-hero-heading { font-size: 1.6rem !important; }
    .hero-actions { justify-content: center !important; }
    .hero-features-row { justify-content: center !important; }
}

/* نجوم ديكور في الخلفية */
.sec3-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 80% 50%, rgba(212,175,55,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 30% 40% at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* ── VIP BADGE ── */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    color: #111;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 900;
    vertical-align: middle;
    margin-right: 12px;
    box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}

/* ── PROGRESS TITLE ── */
.progress-title-gold {
    color: #d4af37 !important;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

/* ── TOGGLE SWITCH ── */
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.view-toggle {
    display: inline-flex;
    background: var(--bg-card, #1e293b);
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    gap: 4px;
}

body.dark-mode .view-toggle {
    background: rgba(255,255,255,0.04);
    border-color: rgba(212,175,55,0.2);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 11px 28px;
    border-radius: 50px;
    font-family: var(--font, 'Cairo', sans-serif);
    font-weight: 800;
    font-size: 0.95rem;
    color: #888;
    cursor: pointer;
    transition: all 0.28s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.dark-mode .toggle-btn {
    color: rgba(255,255,255,0.45);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    color: #111 !important;
    box-shadow: 0 4px 18px rgba(212,175,55,0.4);
    font-weight: 900;
}

.toggle-btn:not(.active):hover {
    background: rgba(212,175,55,0.08);
    color: #d4af37;
}

/* ── GOLD CARDS ── */
.gold-card {
    border-color: rgba(212,175,55,0.25) !important;
    background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02)) !important;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s !important;
}

.gold-card:hover {
    border-color: #d4af37 !important;
    box-shadow: 0 10px 32px rgba(212,175,55,0.18) !important;
    transform: translateY(-6px) !important;
}

.gold-icon {
    color: #d4af37 !important;
}

/* ── GOLD QUIZ ITEM (كويز المحاضرة) ── */
.gold-quiz-item {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02)) !important;
    border-right-color: #d4af37 !important;
}

/* ── GOLD FREE BTN (sidebar) ── */
.gold-free-btn {
    background: linear-gradient(135deg, #d4af37, #f1c40f) !important;
    color: #111 !important;
    box-shadow: 0 4px 18px rgba(212,175,55,0.4) !important;
    font-weight: 900 !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font, 'Cairo', sans-serif);
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.15s;
}

.gold-free-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── TASK CARD — override لون الـ border-right للـ VIP ── */
.task-card {
    border-right-color: rgba(212,175,55,0.3) !important;
}

.task-card:hover {
    border-right-color: #d4af37 !important;
}

/* ── SIDEBAR PORTAL HERO — إلغاء الـ sidebar الجانبي في صفحة sec3 ── */
.portal-hero-sidebar {
    margin-top: 0 !important;
    z-index: auto !important;
    background: var(--bg-card, #1e293b) !important;
    border: 1.5px solid rgba(212,175,55,0.25) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    border-radius: 16px;
    overflow: hidden;
}

body.dark-mode .portal-hero-sidebar {
    background: rgba(255,255,255,0.04) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .toggle-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .vip-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .view-toggle {
        flex-direction: column;
        border-radius: 16px;
        width: 100%;
        max-width: 300px;
    }

    .toggle-btn {
        justify-content: center;
        border-radius: 12px;
    }
}