/*
Theme Name: BakanalIst Theme
Theme URI: https://www.bakanalist.com
Author: Gregory D. Gilbert
Author URI: https://www.bakanalist.com
Description: A custom WordPress theme for BakanalIst, the Ultimate Caribbean Festival & Music Hub.
Version: 2.3
Text Domain: bakanalist-theme
*/

:root {
  /* Carnival-friendly palette */
  --purple: #6C2BD9; /* Royal Purple */
  --gold: #FBBF24;   /* Carnival Gold */
  --magenta: #E11D48;/* Fuchsia */
  --teal: #14B8A6;   /* Aqua/Teal */
  --lime: #84CC16;   /* Lime */
  --indigo: #4338CA; /* Deep Indigo */
  --emerald: #10B981;/* Emerald */
  
  --bg: #0b0b13;     /* Rich dark backdrop */
  --card: #121325;   /* Card base */
  --muted: #9AA4B2;  /* Muted text */
  --text: #F8FAFC;   /* Primary text */
  
  --gradient: linear-gradient(135deg, rgba(108,43,217,.95), rgba(225,29,72,.95) 40%, rgba(251,191,36,.95));
  --soft-grad: linear-gradient(135deg, rgba(20,184,166,.25), rgba(108,43,217,.25));
  
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1200px;
  
  /* Single Island Page Variables */
  --single-purple: #6f2dbd;
  --single-gold: #f5b700;
  --single-teal: #00b8a9;
  --single-coral: #ff6f61;
  --single-indigo: #2d1b64;
  --single-ink: #0a0a0f;
  --single-bg: #0e0f14;
  --single-card: #11131a;
  --single-muted: #c9ced6;
  --single-ring: rgba(245,183,0,.35);
  --single-grad: linear-gradient(135deg, rgba(108,43,217,.95), rgba(225,29,72,.95) 40%, rgba(251,191,36,.95));
  --single-shadow: 0 8px 28px rgba(0,0,0,.28);
  --single-radius: 18px;
  --single-radius-lg: 26px;
}

/* =========================================
   1. BASE RESET & TYPOGRAPHY
   ========================================= */
* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 11, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
}

/* Logo */
.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mark {
    background: var(--gradient);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #fff;
}
.logo-accent { color: var(--gold); }

/* Desktop Links */
.navlinks {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav-list {
    display: flex;
    gap: 25px;
}
.header-nav-list a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
}
.header-nav-list a:hover { color: #fff; }

/* CTA Buttons */
.cta { display: flex; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn.primary { background: var(--gold); color: #000; }
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn.ghost { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.2); 
}
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.15); }

/* Hamburger Button (Default hidden) */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   3. MOBILE DRAWER (SLIDE-OUT MENU)
   ========================================= */
.drawer {
    position: fixed; inset: 0; z-index: 9999;
    visibility: hidden; transition: visibility 0.3s;
}
.drawer.active { visibility: visible; }

.drawer-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.7);
    opacity: 0; transition: opacity 0.3s;
}
.drawer.active .drawer-backdrop { opacity: 1; }

.drawer-panel {
    position: absolute; top: 0; right: -100%; width: 85%; max-width: 350px;
    height: 100%; background: #0b0d12; border-left: 1px solid rgba(255,255,255,0.1);
    padding: 20px; transition: right 0.3s ease-in-out; overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}
.drawer.active .drawer-panel { right: 0; }

/* Mobile Menu List Styles */
.mobile-nav-list { margin-bottom: 20px; }
.mobile-nav-list ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-nav-list a { display: block; padding: 15px 0; font-size: 1.1rem; font-weight: 600; }

/* =========================================
   4. RESPONSIVE LOGIC & MOBILE RESETS
   ========================================= */
@media (max-width: 900px) {
    /* Hide Desktop Nav */
    #desktopNav { display: none; }
    
    /* Show Hamburger */
    .hamburger { display: block; }
    
    /* 1. Reset Margins/Padding for small screens */
    .wrap, .bk-wrap, .container {
        padding: 0 20px !important; 
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 2. Force Grids to Stack (1 Column) */
    .grid, .grid-2, .events-grid, .nyt-grid, .content-grid, .thr-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* 3. Typography Adjustments */
    h1, .up-title, .post-title {
        font-size: 2.2rem !important; 
        line-height: 1.2;
    }
    h2 { font-size: 1.6rem !important; }
    p { font-size: 1rem !important; line-height: 1.6; }

    /* 4. Hero Sections Height */
    .hero, .track-hero, .post-hero {
        height: auto !important;
        min-height: 60vh !important; 
    }
}

/* Desktop Only Logic */
@media (min-width: 901px) {
    .drawer { display: none !important; } /* Ensure drawer is gone on desktop */
    .hamburger { display: none !important; }
}