/* ============================================================
   ARKAIA COMMUNITY - Naruto RP Theme
   Dark with warm orange/amber glows, Japanese lantern vibes
   ============================================================ */

:root {
    --bg-primary: #0c0a08;
    --bg-secondary: #12100c;
    --bg-card: rgba(18, 16, 12, 0.6);
    --bg-glass: rgba(24, 20, 14, 0.5);
    --border-glass: rgba(234, 138, 40, 0.08);
    --border-hover: rgba(234, 138, 40, 0.25);
    --text-primary: #f5f0e8;
    --text-secondary: #a89a84;
    --text-muted: #6b5e4a;
    --orange-glow: rgba(234, 138, 40, 0.15);
    --amber-glow: rgba(217, 119, 6, 0.12);
    --accent-orange: #f59e0b;
    --accent-amber: #ea8a28;
    --accent-red: #dc2626;

    /* Override original style.css variables */
    --primary-400: #f59e0b;
    --primary-500: #ea580c;
    --primary-600: #d97706;
    --primary-700: #b45309;
    --primary-900: #5c2d0e;
    --accent-400: #fb923c;
    --accent-500: #f97316;
    --accent-600: #ea580c;
    --dark-800: #1a1610;
    --dark-900: #12100c;
    --dark-950: #0c0a08;
    --shadow-glow: 0 0 40px rgba(234, 138, 40, 0.2);
    --shadow-glow-accent: 0 0 40px rgba(249, 115, 22, 0.2);
}

/* ─── GLOBAL ─── */
body, html, main, section, div, footer, header, nav, article, aside {
    background-color: transparent;
}
body {
    background: var(--bg-primary) !important;
    color: var(--text-primary);
}
section {
    background: var(--bg-primary) !important;
    position: relative;
}
section > .absolute.inset-0 {
    background: var(--bg-primary) !important;
}

/* ─── AMBIENT LANTERN GLOW (corners) ─── */
body::before, body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
body::before {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(234, 138, 40, 0.06) 0%, rgba(234, 88, 12, 0.02) 40%, transparent 70%);
}
body::after {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, rgba(180, 83, 9, 0.02) 40%, transparent 70%);
}

/* Floating lantern lights on sections */
#features::before, #stats::before, #join::before, #faq::before {
    content: '';
    position: absolute;
    top: 0;
    right: 5%;
    width: 300px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(234, 138, 40, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
#stats::before, #faq::before {
    left: 5%;
    right: auto;
}

/* ─── OVERRIDE DARK BG CLASSES ─── */
.bg-dark-950 { background-color: var(--bg-primary) !important; }
.bg-dark-900 { background-color: var(--bg-secondary) !important; }
.bg-dark-800 { background-color: var(--dark-800) !important; }
.from-dark-950 { --tw-gradient-from: #0c0a08 !important; }
.via-dark-900 { --tw-gradient-stops: var(--tw-gradient-from), #12100c, var(--tw-gradient-to) !important; }
.to-dark-950 { --tw-gradient-to: #0c0a08 !important; }
.from-dark-900 { --tw-gradient-from: #12100c !important; }
.to-dark-900 { --tw-gradient-to: #12100c !important; }
.via-dark-950 { --tw-gradient-stops: var(--tw-gradient-from), #0c0a08, var(--tw-gradient-to) !important; }
.from-primary-900\/30 { --tw-gradient-from: rgba(92, 45, 14, 0.3) !important; }
.to-accent-900\/20 { --tw-gradient-to: rgba(124, 45, 18, 0.2) !important; }
.from-primary-900 { --tw-gradient-from: #5c2d0e !important; }
.to-accent-900 { --tw-gradient-to: #7c2d12 !important; }
.bg-primary-500\/10 { background-color: rgba(234, 88, 12, 0.1) !important; }
.bg-accent-500\/10 { background-color: rgba(249, 115, 22, 0.1) !important; }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.08) !important; }
.bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.08) !important; }
.bg-yellow-500\/10 { background-color: rgba(250, 204, 21, 0.1) !important; }
.bg-indigo-500\/10, .bg-indigo-500\/5 { background-color: rgba(234, 138, 40, 0.06) !important; }
.bg-green-500\/5 { background-color: rgba(34, 197, 94, 0.04) !important; }
.border-white\/5, .border-white\/10 { border-color: rgba(234, 138, 40, 0.06) !important; }
.bg-white\/5, .bg-white\/10 { background-color: rgba(234, 138, 40, 0.04) !important; }
.bg-dark-900\/95 { background-color: rgba(18, 16, 12, 0.95) !important; }
.bg-dark-800\/50 { background-color: rgba(26, 22, 16, 0.5) !important; }
.bg-dark-800\/80 { background-color: rgba(26, 22, 16, 0.8) !important; }

/* ─── GRADIENT TEXT ─── */
.from-primary-400 { --tw-gradient-from: #f59e0b !important; }
.to-accent-400 { --tw-gradient-to: #fb923c !important; }
.text-primary-400 { color: #f59e0b !important; }
.text-accent-400 { color: #fb923c !important; }
.bg-primary-500\/20 { background: rgba(234, 88, 12, 0.12) !important; }
.bg-accent-500\/20 { background: rgba(249, 115, 22, 0.12) !important; }

/* ─── NAVBAR ─── */
#navbar {
    background: rgba(12, 10, 8, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(234, 138, 40, 0.05);
}
#navbar.scrolled {
    background: rgba(12, 10, 8, 0.9) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(234, 138, 40, 0.05);
}

.nav-link {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-orange) !important;
    background: rgba(234, 138, 40, 0.08);
}

/* ─── GLASS CARDS ─── */
.feature-card, .stat-card, .step-card, .team-card, .connect-box {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--border-glass) !important;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}
.feature-card:hover, .step-card:hover, .team-card:hover {
    border-color: var(--border-hover) !important;
    background: rgba(24, 20, 14, 0.7) !important;
    box-shadow: 0 8px 40px rgba(234, 138, 40, 0.06), 0 0 0 1px rgba(234, 138, 40, 0.08);
    transform: translateY(-4px);
}

/* Subtle inner lantern glow on card hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(234, 138, 40, 0.04) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover::after {
    opacity: 1;
}

/* ─── SECTIONS ─── */
#features { background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(18, 16, 12, 1) 50%, var(--bg-primary) 100%) !important; }
#stats { background: linear-gradient(135deg, rgba(234, 138, 40, 0.02) 0%, var(--bg-secondary) 50%, rgba(180, 83, 9, 0.02) 100%) !important; }
#join { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%) !important; }
#faq { background: var(--bg-primary) !important; }
#cta { background: linear-gradient(135deg, rgba(234, 138, 40, 0.06) 0%, var(--bg-secondary) 50%, rgba(180, 83, 9, 0.04) 100%) !important; }
#shop-preview { background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%) !important; }

/* ─── HERO ─── */
#hero .bg-gradient-to-b {
    background: linear-gradient(to bottom, rgba(12, 10, 8, 0.8), rgba(12, 10, 8, 0.5), var(--bg-primary)) !important;
}
#hero .bg-gradient-to-r {
    background: linear-gradient(to right, rgba(92, 45, 14, 0.12), rgba(124, 45, 18, 0.06)) !important;
}

/* ─── BUTTONS ─── */
.btn-primary {
    background: linear-gradient(135deg, #ea580c, #d97706) !important;
    color: white !important;
    padding: 0.65rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(234, 138, 40, 0.3);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(234, 88, 12, 0.35);
    transform: translateY(-2px);
}

.btn-primary-lg {
    background: linear-gradient(135deg, #ea580c, #d97706) !important;
    color: white !important;
    padding: 0.9rem 2.5rem;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(234, 138, 40, 0.3);
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.25);
    display: inline-flex;
    align-items: center;
}
.btn-primary-lg:hover {
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.4);
    transform: translateY(-3px);
}

.btn-secondary-lg {
    background: rgba(234, 138, 40, 0.06) !important;
    color: var(--accent-orange) !important;
    border: 1px solid rgba(234, 138, 40, 0.12) !important;
    padding: 0.9rem 2.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}
.btn-secondary-lg:hover {
    background: rgba(234, 138, 40, 0.12) !important;
    border-color: rgba(234, 138, 40, 0.25) !important;
    transform: translateY(-2px);
}

.btn-white-lg {
    background: white !important;
    color: var(--bg-primary) !important;
    padding: 0.9rem 2.5rem;
    border-radius: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}
.btn-white-lg:hover {
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-outline-lg {
    background: transparent !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 0.9rem 2.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}
.btn-outline-lg:hover {
    border-color: rgba(234, 138, 40, 0.3) !important;
    background: rgba(234, 138, 40, 0.05) !important;
}

/* ─── FEATURE ICONS ─── */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(234, 138, 40, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(234, 138, 40, 0.08);
}
.feature-icon.accent { background: rgba(220, 38, 38, 0.08); color: #ef4444; border-color: rgba(220, 38, 38, 0.08); }
.feature-icon.green { background: rgba(34, 197, 94, 0.08); color: #4ade80; border-color: rgba(34, 197, 94, 0.08); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.08); color: #c084fc; border-color: rgba(168, 85, 247, 0.08); }
.feature-icon.yellow { background: rgba(250, 204, 21, 0.08); color: #fbbf24; border-color: rgba(250, 204, 21, 0.08); }
.feature-icon.cyan { background: rgba(234, 138, 40, 0.08); color: #f59e0b; border-color: rgba(234, 138, 40, 0.08); }

/* ─── FAQ ─── */
.faq-item {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 0.85rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item:hover, .faq-item.active {
    border-color: var(--border-hover);
}
.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}
.faq-icon {
    transition: transform 0.3s;
    color: var(--text-muted);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-orange);
}

/* ─── FOOTER ─── */
footer {
    background: var(--bg-primary) !important;
    border-top: 1px solid rgba(234, 138, 40, 0.04);
}
.footer-heading {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-links li a {
    color: var(--text-muted);
    transition: color 0.3s;
    display: block;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}
.footer-links li a:hover { color: var(--accent-orange); }
.footer-info li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 138, 40, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(234, 138, 40, 0.06);
    transition: all 0.3s;
    font-size: 1.1rem;
}
.social-link:hover {
    background: rgba(234, 138, 40, 0.1);
    color: var(--accent-orange);
    border-color: rgba(234, 138, 40, 0.2);
    transform: translateY(-2px);
}

/* ─── STAT VALUES ─── */
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
}

/* ─── STEP CARDS ─── */
.step-number {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(234, 138, 40, 0.2), rgba(180, 83, 9, 0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}
.step-icon {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}
.step-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.step-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ─── PRELOADER ─── */
#preloader {
    background: var(--bg-primary) !important;
}
.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(234, 138, 40, 0.1);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(234, 138, 40, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(234, 138, 40, 0.2); }

/* ─── MOBILE MENU ─── */
#mobile-menu > div {
    background: rgba(12, 10, 8, 0.95) !important;
    backdrop-filter: blur(20px);
}
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: all 0.3s;
}
.mobile-nav-link:hover {
    color: var(--accent-orange);
    background: rgba(234, 138, 40, 0.06);
}

/* ─── BACK TO TOP ─── */
#back-to-top {
    background: linear-gradient(135deg, #ea580c, #d97706) !important;
    border: 1px solid rgba(234, 138, 40, 0.3);
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}
#back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ─── SELECTION ─── */
::selection {
    background: rgba(234, 138, 40, 0.3);
    color: white;
}

/* ─── CONNECT BOX ─── */
.connect-box {
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

/* ─── HAMBURGER ─── */
.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator { display: inline-flex; flex-direction: column; align-items: center; }
.mouse {
    width: 26px; height: 40px;
    border: 2px solid rgba(234, 138, 40, 0.2);
    border-radius: 13px;
    display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
    width: 3px; height: 8px;
    background: var(--accent-orange);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}
