:root {
    /* Brand Colors */
    --color-primary-bg: #0B3C8A;
    --color-primary-dark: #051a3d;
    --color-electric-blue: #5FAFFF;
    --color-gold: #F5C542;
    --color-card-bg: #1E293B;
    --color-text-primary: #E6EEF8;
    --color-obsidian: #0F172A;
    --color-slate-shadow: #1E293B;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Gradients */
    --bg-gradient: radial-gradient(circle at top center, #0B3C8A 0%, #0F172A 80%);
    --card-gradient: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);

    /* Shadows & Glows */
    --glow-blue: 0 0 15px rgba(95, 175, 255, 0.3);
    --glow-gold: 0 0 15px rgba(245, 197, 66, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--color-electric-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-shadow: 0 0 8px rgba(95, 175, 255, 0.6);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(95, 175, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-electric-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 0 10px rgba(95, 175, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    /* Slightly sharper corners */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--color-electric-blue);
    color: var(--color-primary-dark);
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(95, 175, 255, 0.6);
    background: #7bbfff;
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    box-shadow: var(--glow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.6);
    background: #ffcc5c;
}

.btn-outline {
    background: transparent;
    color: var(--color-electric-blue);
    border: 1px solid var(--color-electric-blue);
}

.btn-outline:hover {
    background: rgba(95, 175, 255, 0.1);
    box-shadow: 0 0 15px rgba(95, 175, 255, 0.2);
}

/* Countdown Bar */
.countdown-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(95, 175, 255, 0.1);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.countdown-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .countdown-bar {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1.5rem;
    }

    .countdown-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Slightly wider min */
    gap: 2rem;
    justify-content: center;
    /* Center the grid items if they don't fill row */
    padding: 1rem;
    /* Add padding for focus rings/shadows */
}

.project-card {
    background: var(--color-card-bg);
    /* Use var */
    border: 1px solid rgba(95, 175, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* For when it's an anchor */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(11, 20, 40, 0.7), var(--glow-blue);
    border-color: var(--color-gold) !important;
    /* Force gold border */
}

/* Subtle corner accent (bottom-right) */
.project-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, rgba(95, 175, 255, 0.2) 50%);
    pointer-events: none;
    /* Ensure clicks pass through */
    transition: all 0.3s ease;
}

.project-card:hover::after {
    background: linear-gradient(135deg, transparent 50%, rgba(245, 197, 66, 0.4) 50%);
    /* Gold corner on hover */
}

.project-title {
    font-size: 1.5rem;
    color: var(--color-electric-blue);
    margin: 0;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-dates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Pushes meta to bottom */
}

.date-item {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.date-label {
    color: #94A3B8;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.date-value {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.project-desc {
    color: #94A3B8;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
    display: none;
    /* Hidden as per request */
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Quest Scroll Style */
.hero-scroll {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, transparent 70%);
    display: flex;
    justify-content: center;
}

.scroll-frame {
    border: 3px double var(--color-gold);
    padding: 3rem 5rem;
    background: rgba(21, 31, 50, 0.9);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    position: relative;
    backdrop-filter: blur(5px);
}

.scroll-frame::before {
    content: "❖";
    display: block;
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-scroll h1 {
    font-size: 3rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(95, 175, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.4));
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero p {
    font-size: 1.25rem;
    color: #94A3B8;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-electric-blue);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(95, 175, 255, 0.2);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 10px rgba(95, 175, 255, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

/* Utilities */
.text-gold {
    color: var(--color-gold);
}

.text-blue {
    color: var(--color-electric-blue);
}

/* Arena Styles */
.arena-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.battle-ground {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.fighter-card {
    flex: 1;
    max-width: 500px;
    background: var(--color-card-bg);
    border: 2px solid rgba(95, 175, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fighter-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), var(--glow-blue);
}

.fighter-card h2 {
    color: var(--color-electric-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(95, 175, 255, 0.3);
}

.fighter-card .description {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    text-align: left;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vote-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-top: auto;
}

.vs-badge {
    align-self: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(245, 197, 66, 0.8);
    background: rgba(15, 23, 42, 0.9);
    padding: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    z-index: 10;
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .battle-ground {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .vs-badge {
        position: relative;
        left: auto;
        transform: none;
        padding: 0.5rem 1rem;
        font-size: 2rem;
        border-radius: 8px;
    }

    .fighter-card {
        width: 100%;
    }
}

.preview-container {
    width: 100%;
    height: 300px;
    background: #000;
    border: 1px solid rgba(95, 175, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Optional: prevent interaction if just visual, but user might want to scroll? let's enable interaction for now or maybe block it so click goes to vote? User said "preview", usually interactive if it's a web app. Let's keep interaction. */
    pointer-events: auto;
}

.stats-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.stats-block p {
    margin: 0.25rem 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.stats-block .text-xs {
    font-size: 0.75rem;
    color: #64748b;
}