/* ============================================
   صفحة "عن قضية" — About Page Styles
   ============================================ */

/* ——— Base ——— */
.about-page { overflow-x: hidden; }
.about-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.about-section {
    padding: 80px 0;
    position: relative;
}

/* ——— Accent Glow Text ——— */
.accent-glow {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.9) 0%, var(--bg-color) 100%);
}
.about-particles-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.about-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}
.about-hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(233, 69, 96, 0.015) 2px,
        rgba(233, 69, 96, 0.015) 4px
    );
    pointer-events: none;
    z-index: 1;
}
.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}

/* Badge */
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.about-badge-icon {
    font-size: 1.1rem;
    animation: badgeSpin 8s linear infinite;
}
@keyframes badgeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Title */
.about-hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}
.about-hero-sub {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.about-hero-main {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
}
.about-hero-tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}
.about-hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.8;
}
.typed-wrapper {
    color: var(--accent-color);
    font-weight: 600;
}

/* Hero Actions */
.about-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Buttons */
.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-family: 'Tajawal', sans-serif;
}
.about-btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}
.about-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.45);
    color: #fff;
}
.about-btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.about-btn-ghost:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}
.about-btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}
.about-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: btnShine 3s infinite;
}
@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Scroll indicator */
.about-hero-scroll {
    display: flex;
    justify-content: center;
}
.scroll-indicator {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}
.scroll-dot {
    width: 4px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 4px;
    animation: scrollDotBounce 2s ease-in-out infinite;
}
@keyframes scrollDotBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(14px); opacity: 0.3; }
}

/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
.about-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(233, 69, 96, 0.08);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 14px;
}
.about-section-badge.center {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
}
.about-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.about-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.about-section-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   INTRO — ما هي قضية؟
   ═══════════════════════════════════════════ */
.about-intro-section {
    background: var(--bg-color);
}
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-intro-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.about-intro-text p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 12px;
}
.about-intro-text em {
    color: var(--accent-color);
    font-style: normal;
    font-weight: 600;
}
.about-intro-text strong {
    color: var(--text-color);
}

/* Float Cards */
.about-intro-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-float-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
}
.about-float-card:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateX(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.about-float-icon-wrap {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 14px;
}
.about-float-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}
.about-float-text small {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.about-float-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   TIMELINE — كيف تعمل؟
   ═══════════════════════════════════════════ */
.about-how-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(15, 15, 35, 0.4) 100%);
}
.about-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}
.about-timeline-line {
    position: absolute;
    right: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    border-radius: 3px;
}
.about-timeline-progress {
    position: absolute;
    right: 28px;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-color), #6366f1);
    border-radius: 3px;
    z-index: 1;
}
.about-timeline-item {
    position: relative;
    padding: 0 80px 40px 0;
}
.about-tl-dot {
    position: absolute;
    right: 14px;
    top: 8px;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}
.about-tl-dot span {
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}
.about-tl-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.35s;
}
.about-tl-card:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.about-tl-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.about-tl-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.about-tl-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════
   BENTO GRID — ماذا ستجد؟
   ═══════════════════════════════════════════ */
.about-features-section {
    background: var(--bg-color);
}
.about-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.about-bento-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    cursor: default;
}
.about-bento-card:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.about-bento-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--bento-accent, rgba(233,69,96,0.1)), transparent 60%);
    pointer-events: none;
}
.about-bento-content {
    position: relative;
    padding: 28px;
    z-index: 1;
}
.about-bento-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.about-bento-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.about-bento-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.about-bento-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.about-bento-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s;
}
.about-bento-link:hover {
    gap: 10px;
    color: var(--accent-color);
}
.about-bento-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 8rem;
    opacity: 0.04;
    pointer-events: none;
}
.about-bento-lg {
    grid-column: span 2;
    grid-row: span 2;
}
.about-bento-lg .about-bento-content {
    padding: 36px;
}
.about-bento-lg .about-bento-icon { font-size: 3rem; }
.about-bento-lg h3 { font-size: 1.4rem; }
.about-bento-lg p { font-size: 1rem; }

.about-bento-md {}
.about-bento-sm .about-bento-content {
    padding: 22px;
}
.about-bento-sm .about-bento-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.about-bento-sm h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════
   RANKS — نظام الرتب
   ═══════════════════════════════════════════ */
.about-ranks-section {
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.3) 0%, var(--bg-color) 100%);
    overflow: hidden;
}
.about-ranks-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding: 40px 20px;
    overflow-x: auto;
}
.about-ranks-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    transform: translateY(-50%);
}
.about-ranks-line-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #6366f1, #f4d160);
    border-radius: 3px;
    transition: width 0.5s;
}
.about-rank-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.about-rank-circle {
    width: 64px;
    height: 64px;
    background: var(--card-bg);
    border: 3px solid var(--rank-color, var(--border-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.35s;
}
.about-rank-node:hover .about-rank-circle {
    transform: scale(1.12);
    box-shadow: 0 0 25px color-mix(in srgb, var(--rank-color) 30%, transparent);
}
.about-rank-info {
    text-align: center;
}
.about-rank-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}
.about-rank-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.about-rank-master .about-rank-circle {
    animation: masterGlow 2.5s ease-in-out infinite;
}
@keyframes masterGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(244, 209, 96, 0.2); }
    50% { box-shadow: 0 0 40px rgba(244, 209, 96, 0.4), 0 0 60px rgba(244, 209, 96, 0.15); }
}
.about-rank-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(244, 209, 96, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   STATS — إحصائيات
   ═══════════════════════════════════════════ */
.about-stats-section {
    background: var(--bg-color);
    padding: 60px 0;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.about-stat-card {
    position: relative;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 16px;
    overflow: hidden;
    transition: all 0.35s;
}
.about-stat-card:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.about-stat-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}
.about-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.about-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.about-stat-ring {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(233, 69, 96, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   FAQ — أسئلة شائعة
   ═══════════════════════════════════════════ */
.about-faq-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(15, 15, 35, 0.3) 100%);
}
.about-faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.about-faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}
.about-faq-item:hover,
.about-faq-item[open] {
    border-color: rgba(233, 69, 96, 0.25);
}
.about-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    transition: background 0.3s;
    gap: 12px;
}
.about-faq-item summary::-webkit-details-marker { display: none; }
.about-faq-item summary::marker { display: none; content: ''; }
.about-faq-item summary:hover {
    background: rgba(233, 69, 96, 0.04);
}
.faq-q {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.faq-q i {
    color: var(--accent-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.faq-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
}
.faq-toggle i {
    font-size: 0.75rem;
    color: var(--accent-color);
    transition: transform 0.3s;
}
.about-faq-item[open] .faq-toggle {
    background: var(--accent-color);
}
.about-faq-item[open] .faq-toggle i {
    color: #fff;
}
.faq-answer {
    padding: 0 22px 20px;
    animation: faqSlideIn 0.35s ease-out;
}
.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
    font-size: 0.92rem;
}
@keyframes faqSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   CTA — Final call to action
   ═══════════════════════════════════════════ */
.about-cta-section {
    padding: 60px 0 100px;
}
.about-cta-box {
    position: relative;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 28px;
    padding: 64px 32px;
    text-align: center;
    overflow: hidden;
}
.about-cta-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(233, 69, 96, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.about-cta-content {
    position: relative;
    z-index: 1;
}
.about-cta-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 20px;
}
.about-cta-icon-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    animation: ctaRingPulse 3s ease-out infinite;
}
.about-cta-icon-ring.ring2 {
    animation-delay: 1.5s;
}
@keyframes ctaRingPulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}
.about-cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.about-cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}
.about-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] .about-hero {
    background: linear-gradient(180deg, rgba(245, 245, 255, 0.95), var(--bg-color));
}
[data-theme="light"] .about-how-section {
    background: linear-gradient(180deg, var(--bg-color), rgba(245, 245, 255, 0.6));
}
[data-theme="light"] .about-ranks-section {
    background: linear-gradient(180deg, rgba(245, 245, 255, 0.4), var(--bg-color));
}
[data-theme="light"] .about-faq-section {
    background: linear-gradient(180deg, var(--bg-color), rgba(245, 245, 255, 0.3));
}
[data-theme="light"] .about-hero-scanlines {
    background: none;
}
[data-theme="light"] .about-hero-glow {
    background: radial-gradient(circle, rgba(233, 69, 96, 0.06) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-bento-lg {
        grid-column: span 2;
        grid-row: span 1;
    }
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-ranks-track {
        gap: 12px;
        padding: 30px 10px;
    }
    .about-rank-circle {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .about-section { padding: 50px 0; }
    .about-hero { min-height: 90vh; }
    .about-hero-main { font-size: 2.5rem; }
    .about-hero-desc { font-size: 0.95rem; }
    .about-section-title { font-size: 1.6rem; }
    .about-intro-title { font-size: 1.5rem; }

    .about-bento-grid {
        grid-template-columns: 1fr;
    }
    .about-bento-lg {
        grid-column: span 1;
    }
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .about-stat-num { font-size: 2rem; }

    .about-timeline-line,
    .about-timeline-progress {
        right: 18px;
    }
    .about-tl-dot { right: 4px; width: 28px; height: 28px; }
    .about-timeline-item { padding-right: 56px; }

    .about-ranks-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .about-rank-node {
        scroll-snap-align: center;
        min-width: 100px;
    }

    .about-cta-box { padding: 40px 20px; }
    .about-cta-box h2 { font-size: 1.5rem; }
    .about-cta-buttons { flex-direction: column; align-items: center; }
    .about-btn-lg { width: 100%; justify-content: center; }

    .about-faq-item summary { padding: 14px 16px; font-size: 0.9rem; }
    .faq-answer { padding: 0 16px 16px; }
}
