/*
Theme Name: FlikTix
Theme URI: https://fliktix.com
Author: FlikTix
Description: Custom theme for FlikTix — gig-poster aesthetic for rock, punk, and hardcore concert ticketing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: fliktix
*/

/* -------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ------------------------------------------------------------------------- */
:root {
  --ink:       #0c0c0c;
  --ink-soft:  #161616;
  --paper:     #f2f0ea;
  --acid:      #d4ff3f;
  --warn:      #ff3b30;
  --ok:        #3ddc84;
  --mid:       #7a776e;
  --line:      #2a2a2a;
  --radius:    4px;
  --max-w:     1140px;
  --font-display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Helvetica Neue', Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   RESET + BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

/* -------------------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------------------- */
.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------------------
   SITE HEADER
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.site-logo span { color: var(--acid); }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s;
}
.primary-nav a:hover { color: var(--acid); }

.primary-nav .nav-cta a {
  background: var(--acid);
  color: var(--ink);
  border-radius: var(--radius);
}
.primary-nav .nav-cta a:hover {
  background: #bfe833;
  color: var(--ink);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--paper);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s;
}

/* -------------------------------------------------------------------------
   HERO BANNER
   ------------------------------------------------------------------------- */
.site-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-soft) center/cover no-repeat;
  overflow: hidden;
}

.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12,12,12,0.1) 0%,
    rgba(12,12,12,0.6) 60%,
    rgba(12,12,12,0.97) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 20px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--acid);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero-title em {
  font-style: normal;
  color: var(--acid);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--mid);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-primary { background: var(--acid); color: var(--ink); }
.btn-outline { background: transparent; color: var(--paper); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--paper); }

/* -------------------------------------------------------------------------
   SECTION HEADERS
   ------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--acid);
  margin: 0;
}

.section-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mid);
}
.section-link:hover { color: var(--paper); }

/* -------------------------------------------------------------------------
   EVENT CARDS
   ------------------------------------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: var(--paper);
  display: block;
}
.event-card:hover {
  border-color: var(--acid);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--paper);
}

.event-card-img {
  aspect-ratio: 3/2;
  background: var(--line) center/cover no-repeat;
  position: relative;
}

.event-card-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--acid);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
}

.event-card-body {
  padding: 16px;
}

.event-card-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mid);
  margin-bottom: 6px;
}

.event-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.1;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.event-price {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--acid);
}

/* -------------------------------------------------------------------------
   HOMEPAGE SECTIONS
   ------------------------------------------------------------------------- */
.home-section {
  padding: 56px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   ORGANIZER DIRECTORY STRIP
   ------------------------------------------------------------------------- */
.organizer-strip {
  background: var(--ink-soft);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 40px 20px;
}

.organizer-strip .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.organizer-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.organizer-grid::-webkit-scrollbar { display: none; }

.organizer-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 40px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.organizer-chip:hover { border-color: var(--acid); text-decoration: none; color: var(--paper); }

.organizer-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line) center/cover no-repeat;
}

/* -------------------------------------------------------------------------
   SITE FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--line);
  padding: 48px 20px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 10px;
}
.footer-brand .wordmark span { color: var(--acid); }
.footer-brand p { color: var(--mid); font-size: 13px; }

.footer-nav h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-bottom: 14px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--paper); font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: var(--acid); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--mid);
}

/* -------------------------------------------------------------------------
   SINGLE EVENT PAGE
   ------------------------------------------------------------------------- */
.event-hero {
  min-height: 50vh;
  background: var(--ink-soft) center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.event-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--ink) 100%);
}

.event-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.event-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.event-description { font-size: 16px; line-height: 1.7; color: var(--paper); }

/* Ticket purchase box */
.ticket-box {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.ticket-box h3 {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--acid);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.ticket-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ticket-type-name { font-weight: 700; }
.ticket-type-price { font-family: var(--font-display); font-size: 18px; color: var(--acid); }

.ticket-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.ticket-qty button {
  width: 32px; height: 32px;
  background: var(--line); border: none; color: var(--paper);
  border-radius: var(--radius); font-size: 18px; cursor: pointer;
}
.ticket-qty span { font-weight: 700; min-width: 24px; text-align: center; }

.ticket-box .btn { width: 100%; text-align: center; margin-top: 20px; }

.ticket-fee-note {
  font-size: 11px;
  color: var(--mid);
  text-align: center;
  margin-top: 10px;
}

/* -------------------------------------------------------------------------
   ARCHIVE / EVENTS LIST PAGE
   ------------------------------------------------------------------------- */
.archive-header {
  padding: 48px 20px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 2px solid var(--line);
}

.archive-header h1 { font-size: clamp(36px, 6vw, 72px); }

.archive-filters {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: none;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--acid); color: var(--acid); }

.archive-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* -------------------------------------------------------------------------
   SINGLE ORGANIZER PROFILE
   ------------------------------------------------------------------------- */
/* (styles already embedded in the profile template — imported here for
   consistency when served through the theme rather than standalone) */

/* -------------------------------------------------------------------------
   UTILITY
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-acid { color: var(--acid); }
.text-mid  { color: var(--mid); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .primary-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 2px solid var(--line); padding: 16px 20px; gap: 4px; }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .event-body { grid-template-columns: 1fr; }
  .ticket-box { position: static; }
}

/* ── Account dropdown nav ── */
.nav-account {
  position: relative;
}
.nav-account-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 7px 14px;
  border-radius: 4px;
  font-family: var(--font-d);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s;
}
.nav-account-btn:hover,
.nav-account-btn[aria-expanded="true"] {
  border-color: var(--acid);
  color: var(--acid);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 180px;
  list-style: none;
  padding: 6px 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.nav-dropdown.open {
  display: block;
}
.nav-dropdown li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--paper);
  text-decoration: none;
  transition: background .1s, color .1s;
}
.nav-dropdown li a:hover {
  background: var(--ink3);
  color: var(--acid);
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

/* ── Account dropdown fix ── */
.nav-account { position: relative; list-style: none; }

.nav-account-btn {
  color: var(--paper) !important;
  text-decoration: none !important;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-block;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.nav-account-btn:hover,
.nav-account-btn.active {
  border-color: var(--acid) !important;
  color: var(--acid) !important;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 180px;
  list-style: none;
  padding: 6px 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  margin: 0;
}
.nav-dropdown.open { display: block; }
.nav-dropdown li { margin: 0; padding: 0; }
.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-family: var(--font-b);
  font-weight: 400;
  color: var(--paper) !important;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0;
  transition: background .1s, color .1s;
}
.nav-dropdown li a:hover {
  background: var(--ink3);
  color: var(--acid) !important;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
  padding: 0;
}

/* ── Event page sections ── */
.event-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #2a2a2a);
}
.event-section-hd {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--acid, #d4ff3f);
  margin-bottom: 14px;
}
.performer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.performer-tag {
  background: var(--ink2, #161616);
  border: 1px solid var(--line, #2a2a2a);
  color: var(--paper, #f2f0ea);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.event-youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink2, #161616);
}
.event-youtube iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.event-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-btn {
  color: var(--paper, #f2f0ea);
  text-decoration: none;
  border: 1px solid var(--line, #2a2a2a);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .15s, color .15s;
}
.social-btn:hover {
  border-color: var(--acid, #d4ff3f);
  color: var(--acid, #d4ff3f);
}
