/* Cyberpunk/Matrix Theme for Vote Panel */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --neon-cyan: #00ffd5;
    --neon-cyan-dim: #00b8a0;
    --accent-orange: #ff6b35;
    --bg-dark: #0a0a0f;
    --card-bg: rgba(10, 15, 20, 0.92);
    --text-main: #e0e0e0;
    --text-sub: #8899aa;
    --warning-orange: #ff8c42;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

/* Grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Matrix canvas background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 0 1.25rem;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.4);
    padding: 2.5rem 2rem 1.75rem;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(255, 0, 255, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    max-width: 420px;
    margin: 30px auto;
    position: relative;
}


.card:hover {
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        0 0 80px rgba(255, 0, 255, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* Header */
.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 213, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.card-intro-text {
    margin: 1.25rem 0 2rem;
    text-align: center;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 .25rem;
    color: var(--neon-cyan);
}

.card-text {
    margin: 0;
    font-size: .95rem;
    color: var(--text-sub);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-sub);
    margin-bottom: 1rem;
}

/* Vote image */
.vote-image-container {
    margin: 1.25rem auto 2.5rem;
    text-align: center;
}

.vote-image-container img {
    width: 150px;
    height: auto;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(255, 0, 255, 0.2);
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.vote-image-container img:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(255, 0, 255, 0.3);
}

/* Stats */
.stats-panel {
    margin-top: 1rem;
    text-align: center;
}

.main-stat-block {
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.4);
    padding: 1.5rem 1rem;
    margin-bottom: 1.75rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.15);
}

.main-stat-block .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}

.main-stat-block .label {
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .1em;
    opacity: .9;
    margin-top: .3rem;
    color: var(--text-sub);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.stat-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem .5rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stat-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.25);
    border-color: var(--neon-cyan);
}

.stat-block .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .15rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.stat-block .label {
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--text-sub);
    letter-spacing: 1px;
}

/* Theme toggle - hidden for cyberpunk */
.theme-switcher {
    display: none;
}

/* Footer */
.card-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.card-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-footer a:hover {
    color: #fff;
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
}

.modern-input {
    width: 100%;
    max-width: 280px;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    color: var(--neon-cyan);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.modern-input::placeholder {
    color: var(--text-sub);
}

.modern-input:focus {
    outline: none;
    border-color: var(--neon-magenta);
    box-shadow: 
        0 0 15px rgba(255, 0, 255, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.gradient-button {
    border: 1px solid var(--neon-cyan);
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.35s ease;
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.gradient-button:hover::before {
    left: 100%;
}

.gradient-button:hover {
    background: rgba(0, 255, 213, 0.15);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 255, 213, 0.4);
    transform: translateY(-3px);
}

.login-form .modern-input-group {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Warning box */
.login-warning {
    background: rgba(0, 0, 0, 0.6);
    color: #b0b8c0;
    border: 1px solid rgba(0, 255, 213, 0.3);
    border-left: 3px solid var(--warning-orange);
    padding: 12px 15px;
    margin: 18px 0 10px 0;
    font-size: 0.9em;
    line-height: 1.6;
    display: flex;
    gap: 1em;
    align-items: flex-start;
    width: 100%;
}

.warning-icon {
    font-size: 1.25em;
    line-height: 1.2;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text p {
    margin: 0 0 0.4em 0;
    padding: 0;
    line-height: 1.4;
}

.warning-text p:last-child {
    margin-bottom: 0;
}

.login-warning b {
    color: var(--neon-cyan);
    font-weight: 600;
}

.login-warning a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-warning a:hover {
    color: #fff;
    text-decoration: underline;
}

.cooldown-message {
    margin-top: 1rem;
    font-size: .95rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.card-body > a {
    display: none;
}

.card-body {
    padding: 0 1.2rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 15px;
        min-height: 100vh;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.5rem 1rem;
        border-radius: 0;
        box-sizing: border-box;
    }
    
    .card:hover {
        transform: none;
    }
    
    .card-header {
        padding: 0;
    }
    
    .card-header h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
        word-break: break-word;
    }
    
    .subtitle {
        padding: 0;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 0;
    }
    
    .login-form {
        width: 100%;
    }
    
    .modern-input,
    .gradient-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .modern-input-group {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .main-stat-block .value {
        font-size: 2.2rem;
    }
    
    .stat-block .value {
        font-size: 1.2rem;
    }
    
    .login-warning {
        flex-direction: column;
        gap: 0.5em;
        padding: 10px 12px;
        font-size: 0.85em;
    }
    
    .warning-icon {
        font-size: 1.1em;
    }
    
    .vote-image-container img {
        width: 120px;
    }
    
    .card-footer {
        padding: 0;
    }
    
    .card-intro-text {
        margin: 1rem 0 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 1.2rem 0.8rem;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
    
    .main-stat-block .value {
        font-size: 1.8rem;
    }
    
    .gradient-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .login-warning {
        font-size: 0.8em;
    }
}
