/* ==========================================================================
   AVENTARA — Premium Event Ticketing Platform
   Modern Dark / Charcoal Sleek Theme (Linear / Vercel / Apple Aesthetic)
   Palette:
     - Primary: Deep Violet (#6C3CE1)
     - Secondary: Hot Pink (#FF2D78)
     - Accent: Electric Yellow (#FFD600)
     - Background: Modern Dark Charcoal (#12141F)
     - Surface 1: #1A1D2B
     - Surface 2 (Cards): #212536
     - Surface 3 (Lighter/Hover): #2B3046
     - Text: #F1F3F9 / Muted: #9CA3AF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Modern Charcoal / Gray Dark Theme */
  --bg-dark: #12141F;
  --bg-dark-soft: #161826;
  --surface: #1A1D2B;
  --surface-card: #202436;
  --surface-light: #282D42;
  --surface-hover: #313750;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(255, 255, 255, 0.16);

  --primary: #6C3CE1;
  --primary-hover: #5A2ECC;
  --primary-light: rgba(108, 60, 225, 0.14);
  --primary-glow: 0 0 35px rgba(108, 60, 225, 0.4);

  --secondary: #FF2D78;
  --secondary-hover: #E71D66;
  --secondary-light: rgba(255, 45, 120, 0.14);
  --secondary-glow: 0 0 30px rgba(255, 45, 120, 0.4);

  --accent: #FFD600;
  --accent-hover: #E6C200;
  --accent-light: rgba(255, 214, 0, 0.14);
  --accent-glow: 0 0 25px rgba(255, 214, 0, 0.35);

  --text-main: #F3F4F8;
  --text-muted: #9BA3B8;
  --text-subtle: #6D758D;
  --text-dark: #12141F;

  /* Status Colors */
  --success: #22C55E;
  --success-light: rgba(34, 197, 94, 0.14);
  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.14);
  --error: #EF4444;
  --error-light: rgba(239, 68, 68, 0.14);
  --info: #3B82F6;
  --info-light: rgba(59, 130, 246, 0.14);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 20px 48px -10px rgba(0, 0, 0, 0.55);

  /* Glassmorphism */
  --glass-bg: rgba(26, 29, 43, 0.78);
  --glass-header: rgba(18, 20, 31, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s var(--ease-spring);
  --transition-slow: 0.45s var(--ease-spring);

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 1024px;
  --container-wide: 1440px;
  --header-height: 76px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 60, 225, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(255, 45, 120, 0.08), transparent);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

ul, ol {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- TYPOGRAPHY SCALE --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

p {
  color: var(--text-muted);
  text-wrap: pretty;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #FFFFFF 20%, #B89BFF 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-hot {
  background: linear-gradient(135deg, #FFFFFF 15%, var(--accent) 55%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  color: var(--text-main);
  max-width: 650px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: 580px;
}

/* --- GLOW ORBS & BACKGROUNDS --- */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.orb-primary {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  width: 580px;
  height: 580px;
}

.orb-secondary {
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  width: 480px;
  height: 480px;
}

.orb-accent {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  width: 320px;
  height: 320px;
}

/* ==========================================================================
   NAVBAR (Glassmorphic, Sticky, Minimal — Clean Logo without badges)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--glass-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(18, 20, 31, 0.94);
  border-bottom: 1px solid var(--surface-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Brand Logo (Clean, No "PRO" or "SECURE" badge) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 60, 225, 0.35);
  font-size: 1.1rem;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 2px;
}

.brand-name span.highlight {
  color: var(--secondary);
}

/* Header Center Search */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search-input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.6rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.header-search-input:focus {
  background: var(--surface-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

/* Nav Menu */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  position: relative;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-main);
  background: var(--surface-light);
  border-color: var(--surface-border-hover);
}

.icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-dark);
}

/* Profile Dropdown Trigger */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 4px 10px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.profile-trigger-btn:hover {
  background: var(--surface-light);
  border-color: var(--surface-border-hover);
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 1px solid var(--surface-border);
}

.profile-label-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.role-badge-tag {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.role-badge-tag.user {
  background: var(--info-light);
  color: var(--info);
}
.role-badge-tag.creator {
  background: var(--secondary-light);
  color: var(--secondary);
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 270px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  display: none;
  z-index: 1050;
  backdrop-filter: var(--glass-blur);
}

.profile-dropdown-menu.active {
  display: block;
  animation: dropdownIn 0.2s var(--ease-spring);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-user-header {
  padding: 0.8rem;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 0.4rem;
}

.dropdown-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.role-switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin: 0.3rem 0 0.5rem;
}

.role-switch-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.role-switch-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--accent);
  border: 1px solid rgba(255, 214, 0, 0.25);
  transition: all var(--transition-fast);
}

.role-switch-btn:hover {
  background: var(--primary);
  color: #fff;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.dropdown-menu-item.highlight-creator {
  color: var(--secondary);
  font-weight: 600;
}

.dropdown-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 0.4rem 0;
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  place-items: center;
  font-size: 1.25rem;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--surface-border);
  z-index: 2000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.drawer-link:hover, .drawer-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER (Clean, Structured, Bahasa Indonesia)
   ========================================================================== */
.site-footer {
  background: #0E1018;
  border-top: 1px solid var(--surface-border);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-newsletter p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
