/* ================= RESET ================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    transition: filter 0.2s ease, background-color 0.2s ease;
}

/* ================= LAYOUT ================= */

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ================= HEADER ================= */

.site-header {
    background: #020617;
    border-bottom: 1px solid #1e293b;
    text-align: center;
    padding: 20px 0;
}

.header-inner {
    display: block;
}

/* ================= LOGO ================= */

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-vertical {
    display: block;
    height: 180px;
}

.logo-horizontal {
    display: none;
}

@media (min-width: 768px) {
    .logo-vertical { display: none; }
    .logo-horizontal { display: block; height: 220px; }
}

/* ================= NAV ================= */

.nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.nav a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
}

.nav a.active {
    background: #ef4444;
    color: white;
}

/* ================= LOGIN ================= */

.login-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
}

.login-btn {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 6px;
    min-width: 180px;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: #e2e8f0;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #1e293b;
}

.login-dropdown:hover .dropdown-content {
    display: block;
}

/* ================= MAIN ================= */

.main-content {
    padding: 30px 0;
    padding-bottom: 70px;
}

/* ================= HERO ================= */

.edge-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("/static/logo/hero.webp") center/cover no-repeat;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2,6,23,0.6), rgba(2,6,23,0.9));
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-sub {
    color: #cbd5f5;
    margin-bottom: 25px;
}

/* ================= CTA ================= */

.button {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.button:hover {
    background: #dc2626;
}

/* ================= FOOTER ================= */

.site-footer {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.muted {
    color: #64748b;
    font-size: 13px;
}

/* ================= BOTTOM NAV ================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #020617;
    border-top: 1px solid #1e293b;
    display: flex;
    overflow-x: auto;
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #e2e8f0;
    text-decoration: none;
}

.bottom-nav a:hover {
    background: #1e293b;
}

@media (min-width: 768px) {
    .bottom-nav { display: none; }
}

/* ================= 🔥 CARD SYSTEM ================= */

/* GRID */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* BASE CARD */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

/* FEATURE CARD */
.card.feature {
    background: rgba(255,255,255,0.04);
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* URGENT CARD */
.card.urgent {
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.card.urgent:hover {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* CARD CONTENT */
.card h2,
.card h3 {
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 10px;
}

/* ACTION BUTTONS */
.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.card-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #1e293b;
    color: white;
}

/* ================= LISTS ================= */

.clean-list {
    list-style: none;
    margin-top: 10px;
}

.clean-list li {
    margin-bottom: 6px;
}

/* ================= 🔥 EVENT STATE ================= */

body.event-active {
    filter: brightness(1.3) saturate(1.2);
    background-color: #1a0000;
}

body.event-active .logo img {
    opacity: 0;
}
