@import url('../fonts/fonts.css');

/* ==========================================================================
   DEVVGAME ULTRA-CLEAN MODERN LIGHT-GLASS DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-hover: rgba(99, 102, 241, 0.4);
    --primary-indigo: #4f46e5;
    --primary-blue: #2563eb;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #ef4444;
    --text-heading: #0f172a;
    --text-body: #334155;
    --font-iransans: 'IranSansX', sans-serif;
    --font-vazir: 'IranSansX', sans-serif;
}

body {
    font-family: var(--font-iransans);
    background-color: var(--bg-page);
    color: var(--text-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Universal strict IranSansX font enforcement for all text & numbers */
html, body, input, button, select, textarea, optgroup, option, p, span, div, a, li, table, td, th, h1, h2, h3, h4, h5, h6, label, strong, b, em, i:not([class*="fa"]) {
    font-family: 'IranSansX', sans-serif !important;
}

/* Retain FontAwesome icon font */
.fa-brands, .fab, [class*="fa-brands"], [class*="fa-steam"], [class*="fa-telegram"], [class*="fa-instagram"], [class*="fa-discord"] {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.fa-solid, .fas, .fa-regular, .far {
    font-family: "Font Awesome 6 Free" !important;
}

.fa-solid, .fas {
    font-weight: 900 !important;
}

[class^="fa-"]:not(.fa-brands):not(.fab), [class*=" fa-"]:not(.fa-brands):not(.fab) {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Glassmorphism & Panel Styling for Bright Theme */
.glass-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
}

.glass-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

/* Ambient Background Mesh */
.light-mesh-bg {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.07) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.04) 0px, transparent 60%);
    background-attachment: fixed;
}

/* 3D Tilt Card Perspective */
.tilt-card-container {
    perspective: 1000px;
}

.tilt-card {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

/* Magnetic Button System */
.btn-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

/* Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    color: #64748b;
    transition: all 0.25s ease;
    padding: 8px 0;
}

.dock-item.active, .dock-item:hover {
    color: #4f46e5;
    transform: translateY(-2px);
}

.dock-item i {
    font-size: 1.15rem;
}

/* Line Clamp & Typography Helpers */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Add to Cart Ripple Container */
.cart-burst-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 3px;
}

/* ==========================================================================
   UI/UX PRO MAX - GUIDE PAGE EXCLUSIVE STYLES
   ========================================================================== */

/* Gradient Glowing Text */
.gradient-text-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.2));
}

.gradient-bg-hero {
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
                linear-gradient(180deg, rgba(238, 242, 255, 0.35) 0%, rgba(248, 250, 252, 0.2) 100%);
}

/* Glowing Pulsing Ring */
.pulse-ring {
    position: relative;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    opacity: 0.35;
    filter: blur(8px);
    animation: pulseGlow 2.5s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(0.96); opacity: 0.25; }
    50% { transform: scale(1.04); opacity: 0.5; }
}

/* Timeline Connecting Line */
.timeline-line-track {
    position: absolute;
    right: 2.25rem;
    top: 2rem;
    bottom: 2rem;
    width: 3px;
    background: #e2e8f0;
    z-index: 0;
    border-radius: 4px;
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 50%, #3b82f6 100%);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    transition: height 0.1s ease-out;
}

/* Interactive Tabs */
.guide-tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.guide-tab-btn.active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.35);
}

/* Glassmorphism Cards & Hover State */
.guide-card-pro {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.guide-card-pro::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.guide-card-pro:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}
.guide-card-pro:hover::after {
    opacity: 1;
}

/* Accordion Smooth Height */
.accordion-wrapper {
    transition: all 0.3s ease;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}
.accordion-item.active .accordion-content {
    display: block !important;
    max-height: 1200px !important;
    opacity: 1 !important;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    transition: max-height 0.5s ease-in, opacity 0.4s ease-in;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #4f46e5;
}

/* Floating Animation */
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: floatY 4s ease-in-out infinite;
}

/* Trade URL helper box highlight */
.trade-url-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Glowing Step Badge */
.step-number-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

/* Dark Support CTA Banner Fix */
.guide-cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.5) !important;
}

/* ==========================================================================
   FANTASY GAMING BACKGROUND CANVAS STYLES
   ========================================================================== */
#devv-game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.7s ease;
}