/* DUELHOUSE.IO - Core System Styles */
/* Cyberpunk Battle Arena Theme */

/* CSS Custom Properties System */
:root {
    /* Color System - Cyberpunk Palette */
    --neon-red: #FF0844;
    --neon-blue: #00D4FF;
    --neon-purple: #BD00FF;
    --neon-green: #00FF88;
    --neon-yellow: #FFD600;
    
    --dark-void: #0A0A0A;
    --dark-steel: #1A1A2E;
    --dark-chrome: #16213E;
    --gray-mech: #3E3E4E;
    --light-steel: #94A1B2;
    
    /* Gradient System */
    --gradient-fire: linear-gradient(135deg, #FF0844, #FF6B6B, #FFD93D);
    --gradient-ice: linear-gradient(135deg, #00D4FF, #0095FF, #6495ED);
    --gradient-poison: linear-gradient(135deg, #00FF88, #39FF14, #7FFF00);
    --gradient-void: linear-gradient(135deg, #BD00FF, #8B00FF, #4B0082);
    
    /* Typography Scale */
    --font-display: 'Bebas Neue', impact, sans-serif;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Animation Timing */
    --anim-fast: 150ms;
    --anim-base: 300ms;
    --anim-slow: 600ms;
    --anim-slower: 1200ms;
}

/* Global Reset - Different Approach */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    background: var(--dark-void);
    color: var(--light-steel);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Cyberpunk Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(189, 0, 255, 0.03) 2px,
            rgba(189, 0, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(10, 10, 10, 0.4) 100%
    );
    pointer-events: none;
    z-index: 2;
}

#battleground {
    position: relative;
    z-index: 10;
}

/* Development Mode Indicator */
.dev-mode-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: repeating-linear-gradient(
        45deg,
        #FFD600,
        #FFD600 10px,
        #000 10px,
        #000 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: warning-flash 2s infinite;
}

@keyframes warning-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.warning-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: stripe-move 3s linear infinite;
}

@keyframes stripe-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.warning-text {
    background: #000;
    color: #FFD600;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.dismiss-dev {
    position: absolute;
    right: 20px;
    background: #000;
    color: #FFD600;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

/* Battle Header */
.battle-header {
    margin-top: 35px;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.95), rgba(10, 10, 10, 0.8));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-blue);
    position: sticky;
    top: 35px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
}

/* Brand Mark */
.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.brand-icon {
    font-size: 2rem;
    animation: sword-clash 3s infinite;
}

@keyframes sword-clash {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.brand-name {
    color: #fff;
    text-shadow: 
        0 0 10px var(--neon-red),
        0 0 20px var(--neon-red),
        0 0 30px var(--neon-red);
}

.brand-name em {
    color: var(--neon-blue);
    font-style: normal;
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue);
}

.brand-suffix {
    color: var(--neon-yellow);
    font-size: 1rem;
    align-self: flex-end;
}

/* Navigation */
.battle-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    color: var(--light-steel);
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: all var(--anim-base);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-fire);
    opacity: 0;
    transition: opacity var(--anim-base);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.nav-btn:hover {
    color: #fff;
    border-color: var(--neon-red);
    transform: translateY(-2px);
}

.nav-btn:hover::before {
    opacity: 0.1;
}

/* Wallet Zone */
.wallet-zone {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 4px;
}

.balance-display.hidden {
    display: none;
}

.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-green);
}

.balance-amount {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.connect-btn {
    background: var(--gradient-fire);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
    transition: all var(--anim-base);
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--anim-slow);
}

.connect-btn:hover::before {
    left: 100%;
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 8, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 8, 68, 0.8);
    }
}

/* Hero Arena Section */
.hero-arena {
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.arena-container {
    max-width: 1400px;
    width: 100%;
}

.battle-announcement {
    text-align: center;
    margin-bottom: 3rem;
}

/* Glitch Text Effect */
.glitch-text {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: normal;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    letter-spacing: 5px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-red);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-blue);
    z-index: -2;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(2deg); }
    40% { transform: skew(-2deg); }
    60% { transform: skew(1deg); }
    80% { transform: skew(-1deg); }
    100% { transform: skew(0deg); }
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 60% 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(30% 0 70% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(40% 0 60% 0); transform: translate(0); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(60% 0 40% 0); transform: translate(0); }
    20% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(50% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 10% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(20% 0 70% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(60% 0 40% 0); transform: translate(0); }
}

.tagline {
    font-size: 1.2rem;
    margin-top: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cyber-glow {
    text-shadow: 
        0 0 10px var(--neon-purple),
        0 0 20px var(--neon-purple),
        0 0 30px var(--neon-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .battle-nav {
        display: none;
    }
    
    .glitch-text {
        font-size: 3rem;
    }
}