/* Base css */

/* @import url('https://fonts.googleapis.com/css2?family=Carter+One&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Permanent+Marker&family=Signika+Negative:wght@300..700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@font-face {
  font-family: 'TanNimbus';
  src:
    url("/static/fonts/tan-nimbus/TAN-NIMBUS.0ebe47af0ce0.woff2") format('woff2'),
    url("/static/fonts/tan-nimbus/TAN-NIMBUS.0e3467f7e99b.woff") format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gliker';
  src:
    url("/static/fonts/gliker/Gliker-Regular.a45e2dadd496.woff") format('woff'),
    url("/static/fonts/gliker/Gliker-Regular.e03cc82aab49.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font-display: "Carter One", system-ui;
  --font-display-weight: 400;
  --font-display-style: normal;
  --branded-font: 'TanNimbus', serif;
  --header-font: 'Gliker', sans-serif;
  --text-font: 'Bebas Neue', sans-serif;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--text-font);
    color: #575757;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

html, body {
    overflow-x: hidden;
    background: linear-gradient(to right, #caecff, #86c6fb);
}

h1 {
    font-family: var(--header-font);
    font-weight: 700;
    font-size: 3rem;
}

h2 {
    font-family: var(--header-font);
    font-weight: 600;
    font-size: 2rem;
}

h3 {
    font-family: var(--header-font);
    font-weight: 400;
    font-size: 1.3rem;
}

p {
    font-family: var(--text-font);
    font-size: 1.3rem;
    line-height: 1.5;
}


/* Layout: page wrapper makes footer stick to bottom */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-spacer {
    height: 4rem; /* Space below fixed nav */
}

/* Main content grows to push footer down */
.main-content {
    flex: 1;
    padding: 0;
    max-width: 960px;
    margin: 0 auto;
}

.form-background {
  background-image: url("/static/images/site/body-background.6677948b3153.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional */
  
}

/* Footer sits at bottom because of flex + margin-top:auto */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.75rem 1rem;
    background: #020617;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* =========================
   NAVIGATION (mobile-first)
   ========================= */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.logo-main {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1.4rem;
    color: #f9fafb;
    font-family: var(--branded-font);
}

.logo-accent {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--branded-font);
    font-size: 1rem;
    font-weight: bold;
    color: #f0b91b;
}

/* NAV SEGMENTS */
.nav-segments {
    justify-self: center;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Primary Nav Group (Home, Lineup, Info, Contact, Tickets) */
.nav-primary {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 3rem;
    padding: 0;
    gap: 0.15rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-nav.scrolled .nav-primary {
    background: rgba(15, 23, 42, 0.98);
}

/* Account Menu Icon */
.nav-account-wrapper {
    position: relative;
}

.nav-account-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 50%;
    cursor: pointer;
    color: #e5e7eb;
    transition: all 0.2s ease;
    padding: 0;
}

.nav-account-toggle:hover {
    background: rgba(15, 23, 42, 1);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: scale(1.05);
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-account-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.account-menu-item:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #ffffff;
}

.account-menu-item.logout {
    color: #ef4444;
}

.account-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.account-menu-item svg {
    flex-shrink: 0;
}

/* Arrow pointer for dropdown */
.nav-account-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 1rem;
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.98);
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    transform: rotate(45deg);
}

/* Tickets Button (inside primary nav) */
.nav-tickets {
    display: block;
    background: #f0b91b;
    padding: 0.2rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.nav-tickets:hover {
    background: #fbbf24;
    color: #000000;
}

/* Secondary Buttons (My Tickets, Login, etc) */
.nav-secondary {
    display: block;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.nav-secondary.blue {
    background: #3b82f6;
    color: #ffffff;
}

.nav-secondary.blue:hover {
    background: #2563eb;
}

.nav-secondary.purple {
    background: #6366f1;
    color: #ffffff;
}

.nav-secondary.purple:hover {
    background: #4f46e5;
}

/* Organiser Button (Green) - Standalone */
.nav-organiser {
    display: block;
    background: #10b981;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.nav-organiser:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Primary nav links */
.nav-link {
    display: block;
    padding: 0;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    border-radius: 2rem;
    transition: background 0.15s ease, color 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-link:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #ffffff;
}

/* Mobile toggle (hamburger) */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.95);
    cursor: pointer;
    padding: 0.35rem;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
}

/* Mobile menu */
.nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-mobile-menu.is-open {
    display: flex;
}

.nav-mobile-menu .nav-link {
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
}

.nav-mobile-menu .nav-tickets,
.nav-mobile-menu .nav-organiser {
    text-align: center;
    margin-top: 0.5rem;
}

/* =========================
    Site Buttons
   ========================= */
/* Button: white pill, black text, shadow like screenshot */
button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.site-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.25rem;

  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;

  border: 2px solid #000;
  border-radius: 999px;

  /* shadow look */
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.site-btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.25rem;

  background: #fcc232;
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;

  border: 2px solid #000;
  border-radius: 999px;

  /* shadow look */
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.site-btn-white:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

/* =========================
   Responsive breakpoints
   ========================= */

/* Small tablet and up (>= 640px) */
@media (min-width: 640px) {
    .main-content {
        padding: 0;
    }

    .footer-inner {
        text-align: right;
    }
}

/* Desktop nav behaviour (>= 768px) */
@media (min-width: 768px) {
    .site-nav {
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-mobile-menu {
        display: none !important;
    }

    .nav-segments {
        display: flex !important;
    }

    .nav-primary {
        padding: 0.1rem 0.5rem;  /* Keep compact on desktop */
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.35rem 0.9rem;  /* Keep compact on desktop */
        font-size: 1.2rem;
    }
      /* Fix: All table cells should have same height */
  .table tbody tr {
    display: table-row;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
    height: 60px; /* Set consistent row height */
  }

  .table th,
  .table td {
    display: table-cell;
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border: none;
    height: 100%; /* Take full height of row */
  }

  /* Artist cell - ensure it takes full height */
  .table td:first-child {
    display: table-cell; /* Not flex */
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    border-bottom: none;
    vertical-align: middle;
    height: 100%;
    line-height: normal;
  }

  .table td:first-child img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem !important;
    vertical-align: middle;
    display: inline-block;
  }

  /* Ensure other cells also take full height */
  .table td:nth-child(2),
  .table td:nth-child(3),
  .table td:nth-child(4),
  .table td:nth-child(5),
  .table td:nth-child(6),
  .table td:last-child {
    height: 100%;
    vertical-align: middle;
  }

  /* Remove any flex properties from artist cell on desktop */
  .table tbody td:first-child {
    display: table-cell !important; /* Override any flex */
    align-items: unset;
    gap: unset;
  }
}


/* Hide segments on mobile, show toggle */
@media (max-width: 767px) {
    .nav-inner {
        display: flex;
        justify-content: space-between;
        padding: 0.65rem 1rem;
    }
    
    .nav-segments,
    .nav-right {
        display: none;
    }

}


/* Larger desktops (>= 1024px) */
@media (min-width: 1024px) {
    .main-content {
        max-width: 1520px;
    }

    .nav-inner,
    .footer-inner {
        max-width: 1120px;
    }

    .nav-primary {
        gap: 0.7rem;
    }

    .nav-link {
        padding: 0.4rem 1rem;
    }
      .table tbody tr {
    height: 64px; /* Slightly taller on desktop */
  }

  .table th,
  .table td {
    padding: 1rem 1.25rem;
    height: 100%;
  }
}