/* ==========================================================================
   DREAMWEAVER EVENTS - GLOBAL CORE STYLESHEET
   ========================================================================== */

:root {
    /* Brand Color Architecture */
    --brand-dark: #0f0a1c;       /* Deep Midnight Purple Base Background */
    --brand-darker: #090512;     /* Darker Purple-Charcoal for Cards & Containers */
    --brand-blue: #2575fc;       /* Primary Interactive Button Blue */
    
    /* Typography Palette */
    --brand-headline: #3a86ff;   /* Electric Accent Blue for Headings */
    --brand-text: #e2e0e8;       /* Soft Off-White for High Readability / Low Glare */
    --brand-gray: #a6a2b5;       /* Muted Lavender-Gray for Secondary Copy */
    
    /* Core Accent Details */
    --brand-purple: #7209b7;     /* Secondary Brand Accent Purple */
    --brand-cyan: #4cc9f0;       /* High Contrast Highlights */
}

/* Base Document Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--brand-dark);
    color: var(--brand-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Typography Hierarchy Overrides */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-headline) !important;
    font-weight: 900;
    letter-spacing: -0.02em;
}

p, span, li, td, th {
    color: var(--brand-text);
}

a {
    color: var(--brand-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-blue);
}

/* ==========================================================================
   NAVIGATION DESKTOP ENGINE (OVERLAPPING BADGE LAUNCH)
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(9, 5, 18, 0.85); /* Semitransparent var(--brand-darker) */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1f143a;
    z-index: 1000;
    padding: 0; 
    height: 80px; /* Locked main header track height */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.nav-group-left {
    display: flex;
    gap: 32px;
}

.nav-group-right {
    display: flex;
    justify-content: flex-end;
}

/* Nav Link Text Scaling */
.nav-link {
    color: var(--brand-text);
    font-weight: 700;
    font-size: 1.3em; /* Enhanced typography scale footprint */
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-headline);
}

/* Overlapping Badge Mechanics */
.nav-logo-center {
    position: relative;
    height: 100%;
}

.nav-logo-center a {
    display: block;
    position: absolute;
    top: -15px; /* Pulls anchor slightly above navbar upper bounds */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1010;
}

.nav-logo-center img {
    height: 170px; /* Target macro sizing footprint */
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); /* Breaks clear boundary over page flow */
}

/* ==========================================================================
   BUTTON ARCHITECTURE
   ========================================================================== */

.btn-primary {
    background: var(--brand-blue);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #1b64e0;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==========================================================================
   DASHBOARD / CONTROLS INPUT FORMS
   ========================================================================== */

input, textarea, select {
    width: 100%;
    padding: 12px;
    background-color: var(--brand-darker) !important;
    color: var(--brand-text) !important;
    border: 1px solid #231b36 !important;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--brand-blue) !important;
    outline: none;
}

label {
    display: block;
    font-size: 0.9rem;
    color: var(--brand-gray);
    margin-bottom: 6px;
    font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE REUSABLE DATAGRIDS (ADMIN STRIPS)
   ========================================================================== */

.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--brand-darker);
    border-radius: 8px;
    overflow: hidden;
}

.log-table th, .log-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #1f143a;
}

.log-table th {
    background: #140d26;
    color: var(--brand-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   UTILITY CONTAINER SYSTEM
   ========================================================================== */

main {
    animation: fadeIn 0.4s ease-out;
    padding-top: 40px; /* Native protection space for hanging logo layouts */
}

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

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES & REFINEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Adds a buffer zone between grid columns so logo and icons never touch */
    .nav-container {
        gap: 12px;
    }

    /* Center and Scale the Logo on Mobile Screens */
    .nav-logo-center {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .nav-logo-center a {
        position: absolute; /* Restores the ability to float */
        top: 5px; /* Adjusts vertical layout baseline on phones */
        left: 50%; /* Pushes to the middle */
        transform: translateX(-50%); /* Pulls back by exactly half its width for true dead-center */
        display: block;
    }

    .nav-logo-center img {
        max-height: 75px; /* Cap height */
        width: auto;
        max-width: 140px; /* Hard cap on width to prevent Facebook icon overlap */
        object-fit: contain; /* Keeps the logo proportional when squeezed */
    }

    /* Brighten the Hamburger Button Bars */
    .hamburger .bar {
        background-color: var(--brand-cyan) !important; /* High contrast cyan */
        box-shadow: 0 0 8px rgba(76, 201, 240, 0.4); /* Neon accent visibility */
    }
    
    .hamburger.active .bar {
        background-color: var(--brand-headline) !important; /* Flips to bright blue when open */
    }
}
