/**
 * Team-Exciting Theme Redesign
 * Professional Gaming Clan Template
 * Version: 2.0.0
 * @package dyat
 */

/* ============================================
   CSS VARIABLES & DESIGN SYSTEM
   ============================================ */
:root {
    /* Brand Colors - Gaming Theme */
    --primary-red: #ff3233;
    --primary-red-dark: #cc0000;
    --primary-red-light: #ff5a5b;
    --secondary-green: #38ff1e;
    --secondary-green-dark: #2acc00;
    --accent-cyan: #00d9ff;
    --accent-purple: #9d00ff;
    --accent-yellow: #ddf247;

    /* Grayscale */
    --black: #000000;
    --dark-900: #0a0a0a;
    --dark-800: #141414;
    --dark-700: #1a1a1a;
    --dark-600: #252525;
    --dark-500: #2a2a2a;
    --gray-400: #3a3a3a;
    --gray-300: #888888;
    --gray-200: #b7b7b7;
    --gray-100: #cccccc;
    --white: #ffffff;

    /* Semantic Colors */
    --bg-primary: #060606;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --bg-card: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
    --bg-card-hover: linear-gradient(135deg, rgba(37, 37, 37, 0.95), rgba(26, 26, 26, 0.98));

    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-dark: #b7b7b7;

    --border-primary: #2a2a2a;
    --border-secondary: #3a3a3a;
    --border-accent: rgba(255, 50, 51, 0.3);

    /* Typography */
    --font-primary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Barlow", "Arial Black", sans-serif;
    --font-display: "Jersey 25", "Impact", sans-serif;
    --font-mono: "Courier New", monospace;

    /* Font Sizes - Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --fs-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    --fs-4xl: clamp(3rem, 2.5rem + 2.5vw, 5.5rem);

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1280px;
    --max-width-2xl: 1536px;
    --container-padding: clamp(1rem, 5vw, 2rem);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.65);
    --shadow-glow-red: 0 0 30px rgba(255, 50, 51, 0.4);
    --shadow-glow-green: 0 0 30px rgba(56, 255, 30, 0.4);
    --shadow-glow-cyan: 0 0 30px rgba(0, 217, 255, 0.4);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 50, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 50, 51, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-4xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--fs-3xl);
    font-weight: 800;
}

h3 {
    font-size: var(--fs-2xl);
    font-weight: 700;
}

h4 {
    font-size: var(--fs-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--fs-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--fs-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--primary-red);
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-wide {
    max-width: var(--max-width-2xl);
}

.container-narrow {
    max-width: var(--max-width-lg);
}

/* Section Spacing */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: calc(var(--space-4xl) * 1.5) 0;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-red),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-red);
}

.card:hover::before {
    opacity: 1;
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 16px rgba(255, 50, 51, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-light), var(--primary-red));
    box-shadow: 0 8px 24px rgba(255, 50, 51, 0.5), var(--shadow-glow-red);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-secondary:hover {
    background: var(--dark-700);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(255, 50, 51, 0.1);
    color: var(--primary-red);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-base);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-xs);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 6, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar-area.scrolled {
    background: rgba(6, 6, 6, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-accent);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--container-padding);
    min-height: 80px;
}

.logo img {
    max-height: 50px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-cyan));
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.navbar-nav a:hover,
.navbar-nav a.current-menu-item {
    color: var(--primary-red);
}

.navbar-nav a:hover::after,
.navbar-nav a.current-menu-item::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, rgba(255, 50, 51, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(56, 255, 30, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--white), var(--gray-100));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--fs-xl);
    color: var(--text-dark);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark-900);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-3xl) 0 var(--space-lg);
    margin-top: var(--space-4xl);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-primary);
}

.footer-widget h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: var(--space-sm);
}

.footer-widget a {
    color: var(--text-dark);
    transition: all var(--transition-base);
}

.footer-widget a:hover {
    color: var(--primary-red);
    padding-left: var(--space-xs);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--primary-red) !important; }

.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-tertiary { background-color: var(--bg-tertiary) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.pt-sm { padding-top: var(--space-sm) !important; }
.pt-md { padding-top: var(--space-md) !important; }
.pt-lg { padding-top: var(--space-lg) !important; }

.pb-sm { padding-bottom: var(--space-sm) !important; }
.pb-md { padding-bottom: var(--space-md) !important; }
.pb-lg { padding-bottom: var(--space-lg) !important; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --space-4xl: 6rem;
        --space-3xl: 4rem;
    }
}

@media (max-width: 991px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
        --space-2xl: 3rem;
    }

    .navbar-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2rem;
        --space-2xl: 2rem;
    }

    .hero {
        min-height: 80vh;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body::before {
        display: none;
    }

    .navbar-area,
    .site-footer,
    .btn {
        display: none;
    }
}
