/* GLOBAL STYLES */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #cbd5e1;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 20px 50px -10px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] {
    /* Royal Dark Mode Palette */
    --primary: #0a0f1d;
    /* Deep luxurious space blue/black for main backgrounds */
    --primary-light: #131b2f;
    /* Slightly lighter deep tone */
    --accent: #60a5fa;
    /* Crisp blue for bright pops (buttons/icons) */
    --accent-dark: #3b82f6;
    --text-main: #f8fafc;
    /* Crisp white text for readability */
    --text-muted: #94a3b8;
    /* Slate for secondary text */
    --text-light: #cbd5e1;
    --bg-light: #162035;
    /* Elevated surface color */
    --white: #111827;
    /* Replaces stark white with a plush dark gray/blue */
    --box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --box-shadow-hover: 0 20px 50px -10px rgba(96, 165, 250, 0.2);
    --border-color: #1e293b;
    /* Subtle divider lines */
    --date-box-bg: #1e293b;
    --footer-bg: #060913;
    --page-bg: #0a0f1d;
    /* Hard override for gradients on pages */
    --info-bg: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    line-height: 1.7;
}

/* NAVBAR */
.navbar {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    background-color: white;
    padding: 4px;
    border-radius: 8px;
}

.logo-text {
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: white;
}

/* BUTTONS */
.btn-login {
    background-color: var(--accent);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.02);
    background-color: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-view {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-view:hover {
    background: var(--accent);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-glow-secondary {
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 18px 40px;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-glow-secondary:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-back-styled {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back-styled:hover {
    color: white;
}

/* MOBILE MENU TOGGLE */
.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 767px) {
    .navbar {
        padding: 15px 20px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        padding: 50px 20px;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1050;
        display: flex !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 1.1rem;
    }
}

/* CARDS */
.event-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color, #f1f5f9);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--text-muted);
}

.date-box {
    background: var(--date-box-bg, #eff6ff);
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    min-width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color, #dbeafe);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.month {
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.day {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.event-info {
    flex: 1;
}

.event-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.event-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.badge-completed {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.past-card {
    opacity: 0.85;
    filter: grayscale(0.2);
}

.site-footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 80px 0 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-brand p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    background-color: #020617;
    position: relative;
    z-index: 2;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    background-color: var(--primary);
    position: relative;
    z-index: 2;
}

.footer-socials a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-3px);
}

/* DARK MODE FLOATING ACTION BUTTON (FAB) */
.theme-toggle-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-fab {
    background-color: var(--accent);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .nav-links .btn-login,
[data-theme="dark"] a.btn-login {
    background-color: #3b82f6;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    border: none;
    font-weight: 800;
    opacity: 1;
}

.theme-toggle-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle-fab:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}