:root {
    /* Transitions */
    --theme-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] {
    --primary: #ffd700; /* Gold */
    --primary-dark: #b8860b;
    --accent: #00d2ff; /* Cyber Blue */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --glass: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 215, 0, 0.1);
    --bg-gradient: radial-gradient(at 0% 0%, rgba(255, 215, 0, 0.05) 0px, transparent 50%),
                   radial-gradient(at 100% 100%, rgba(0, 210, 255, 0.05) 0px, transparent 50%);
}

:root[data-theme="light"] {
    --primary: #5d4037; /* Deep Brown */
    --primary-dark: #3e2723;
    --accent: #2e7d32; /* Heritage Green */
    --bg-dark: #f4ece1; /* Parchment */
    --bg-card: rgba(0, 0, 0, 0.03);
    --text-main: #3e2723;
    --text-muted: #6d4c41;
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(93, 64, 55, 0.1);
    --bg-gradient: radial-gradient(at 0% 0%, rgba(93, 64, 55, 0.05) 0px, transparent 50%),
                   radial-gradient(at 100% 100%, rgba(46, 125, 50, 0.05) 0px, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--theme-transition);
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIj48L3JlY3Q+Cjwvc3ZnPg==');
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.bg-animate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.floating-data {
    position: absolute;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8rem;
    opacity: 0.2;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(10deg); }
}

@keyframes move {
    from { transform: translate(-10%, -10%) scale(1); }
    to { transform: translate(100%, 100%) scale(1.5); }
}

.premium-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

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

header {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-premium {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.btn-premium:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.5);
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.ranking-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-date {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

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

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

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.ranking-content-terminal {
    position: relative;
    overflow: hidden;
}

.ranking-content-terminal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(0, 255, 127, 0.02) 1px,
        rgba(0, 255, 127, 0.02) 2px
    );
    pointer-events: none;
}

.vote-btn:hover {
    background: rgba(0, 255, 127, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 255, 127, 0.2);
}

/* Tribunal Message Bubbles */
.tribunal-log {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.tribunal-log:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
}

.tribunal-log::before {
    content: "LOG_ENTRY";
    position: absolute;
    top: -8px;
    right: 15px;
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--primary);
    background: var(--bg-dark);
    padding: 0 5px;
    letter-spacing: 1px;
}

.user-tag {
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.timestamp {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: monospace;
}

.message-body {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0.8rem 0;
    font-size: 0.95rem;
}

/* Terminal Scanline Animation */
@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: 0%; }
}

.terminal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    z-index: 10;
    pointer-events: none;
    animation: scanline 4s linear infinite;
    opacity: 0.2;
}

.premium-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 1.2rem !important;
    color: white !important;
    font-size: 1rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.premium-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3), inset 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}


