/* Cyberpunk Theme for SwissCoordinator */

/* === ANIMATIONS === */
@keyframes neon-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px #34D399,
            0 0 20px #34D399,
            0 0 40px #34D399,
            0 0 80px #34D399;
        filter: brightness(1.2);
    }
    50% {
        text-shadow:
            0 0 5px #34D399,
            0 0 10px #34D399,
            0 0 20px #34D399,
            0 0 40px #34D399;
        filter: brightness(1);
    }
}

@keyframes glitch {
    0%, 100% {
        text-shadow:
            0.05em 0 0 #00fffc,
            -0.05em -0.025em 0 #fc00ff,
            0.025em 0.05em 0 #fffc00;
    }
    15% {
        text-shadow:
            0.05em 0 0 #00fffc,
            -0.05em -0.025em 0 #fc00ff,
            0.025em 0.05em 0 #fffc00;
    }
    16% {
        text-shadow:
            -0.05em -0.025em 0 #00fffc,
            0.025em 0.025em 0 #fc00ff,
            -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow:
            -0.05em -0.025em 0 #00fffc,
            0.025em 0.025em 0 #fc00ff,
            -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow:
            0.025em 0.05em 0 #00fffc,
            0.05em 0 0 #fc00ff,
            0 -0.05em 0 #fffc00;
    }
    99% {
        text-shadow:
            0.025em 0.05em 0 #00fffc,
            0.05em 0 0 #fc00ff,
            0 -0.05em 0 #fffc00;
    }
}

@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes grid-flow {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cyber-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.4; }
    94% { opacity: 1; }
    96% { opacity: 0.4; }
    97% { opacity: 1; }
}

/* === BASE STYLES === */
body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(52, 211, 153, 0.03) 25%, rgba(52, 211, 153, 0.03) 26%, transparent 27%, transparent 74%, rgba(52, 211, 153, 0.03) 75%, rgba(52, 211, 153, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(52, 211, 153, 0.03) 25%, rgba(52, 211, 153, 0.03) 26%, transparent 27%, transparent 74%, rgba(52, 211, 153, 0.03) 75%, rgba(52, 211, 153, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.8), transparent);
    animation: scan-line 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

/* === TYPOGRAPHY === */
h1 {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease-out, neon-pulse 3s ease-in-out infinite;
    position: relative;
    padding: 2rem 0;
    margin: 1rem 0 2rem;
}

h1::before {
    content: '>>> ';
    color: #34D399;
    animation: cyber-flicker 4s linear infinite;
}

h1::after {
    content: ' _';
    animation: cyber-flicker 1s step-end infinite;
}

h1:hover {
    animation: glitch 0.3s linear infinite;
}

h2 {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 1.5rem 0;
    margin: 3rem 0 2rem;
    font-size: 2rem;
}

h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #34D399 10%,
        #34D399 40%,
        transparent 50%,
        transparent 60%,
        #fc00ff 70%,
        #fc00ff 90%,
        transparent);
    animation: grid-flow 3s linear infinite;
}

h2::after {
    content: '//';
    position: absolute;
    left: -30px;
    color: #34D399;
    opacity: 0.5;
}

/* === LAYOUT & SPACING === */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === CARDS & CONTAINERS === */
.card, .faq-item, .status-card {
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.9), rgba(32, 32, 32, 0.9));
    border: 1px solid #34D399;
    border-radius: 0;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(52, 211, 153, 0.1),
        inset 0 0 20px rgba(52, 211, 153, 0.05);
}

.card::before, .faq-item::before, .status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.2), transparent);
    transition: left 0.5s ease;
}

.card:hover::before, .faq-item:hover::before, .status-card:hover::before {
    left: 100%;
}

.card:hover, .faq-item:hover, .status-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #00fffc;
    box-shadow:
        0 0 30px rgba(52, 211, 153, 0.3),
        0 0 60px rgba(52, 211, 153, 0.1),
        inset 0 0 30px rgba(52, 211, 153, 0.1);
}

/* === TEXT & PARAGRAPHS === */
p {
    font-size: 1.125rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

p strong {
    color: #34D399;
    text-shadow: 0 0 5px rgba(52, 211, 153, 0.5);
}

/* === LISTS === */
ul, ol {
    margin: 2rem 0;
}

ul li, ol li {
    font-size: 1.125rem;
    line-height: 2;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #b0b0b0;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #34D399;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(52, 211, 153, 0.8);
}

/* === LINKS === */
a {
    color: #34D399;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #34D399, #00fffc);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #00fffc;
    text-shadow: 0 0 10px rgba(0, 255, 252, 0.5);
}

/* === CODE BLOCKS === */
code {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #34D399;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #34D399;
    display: inline-block;
    position: relative;
    box-shadow:
        0 0 20px rgba(52, 211, 153, 0.2),
        inset 0 0 20px rgba(52, 211, 153, 0.1);
    margin: 0.5rem 0;
}

code::before {
    content: '$ ';
    color: #fc00ff;
    font-weight: bold;
}

/* === BUTTONS === */
.btn-primary, .btn-secondary {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2.5rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: #000;
    border: 2px solid #34D399;
    font-weight: 900;
    box-shadow:
        0 0 20px rgba(52, 211, 153, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(52, 211, 153, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: neon-pulse 0.5s ease;
}

.btn-secondary {
    background: transparent;
    color: #34D399;
    border: 2px solid #34D399;
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(52, 211, 153, 0.1);
    border-color: #00fffc;
    color: #00fffc;
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(0, 255, 252, 0.3),
        inset 0 0 30px rgba(0, 255, 252, 0.1);
}

/* === NAVIGATION === */
nav {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.8));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #34D399;
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.2);
    position: relative;
    z-index: 1000;
}

nav a {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    position: relative;
}

nav a:hover {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid #34D399;
}

/* === SPECIAL ELEMENTS === */
.hero-title {
    font-size: 4rem;
    background: linear-gradient(135deg, #34D399 0%, #00fffc 25%, #fc00ff 50%, #fffc00 75%, #34D399 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: grid-flow 3s linear infinite;
}

.canary-box {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #34D399;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 50px rgba(52, 211, 153, 0.3),
        inset 0 0 50px rgba(52, 211, 153, 0.1);
}

.canary-box::before {
    content: 'WARRANT CANARY';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #34D399;
    opacity: 0.3;
    letter-spacing: 0.2em;
}

.warning-box {
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.9), rgba(220, 38, 38, 0.3));
    border: 2px solid #dc2626;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    animation: cyber-flicker 10s linear infinite;
}

.warning-box::before {
    content: '⚠ WARNING ⚠';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0a0a0a;
    padding: 0 10px;
    color: #dc2626;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        padding: 1rem 0;
        margin: 0.5rem 0 1rem;
    }
    h2 {
        font-size: 1.25rem;
        padding: 1rem 0;
        margin: 2rem 0 1rem;
    }
    h2::after {
        left: -20px;
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    section {
        padding: 2rem 0;
    }
    .card, .faq-item, .status-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .container {
        padding: 0 1rem;
    }

    /* Better mobile code blocks */
    code {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        word-break: break-all;
        white-space: pre-wrap;
    }

    /* Mobile buttons */
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
    }

    /* Mobile grid improvements */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Mobile text improvements */
    p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    ul li, ol li {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 0.75rem;
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.125rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    section {
        padding: 1.5rem 0;
    }
    .card, .faq-item, .status-card {
        padding: 1rem;
    }
    .container {
        padding: 0 0.75rem;
    }

    code {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}