/* ============================================
   THE 2PM CLUB — Shared Design System
   For standalone static HTML pages
   Link: <link rel="stylesheet" href="/shared-styles.css">
   ============================================ */

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

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --background: 242 12% 4%;
  --foreground: 0 0% 100%;
  --card: 240 12% 8%;
  --card-foreground: 0 0% 100%;
  --primary: 328 100% 54%;
  --primary-foreground: 0 0% 100%;
  --secondary: 207 100% 60%;
  --secondary-foreground: 0 0% 100%;
  --muted: 240 12% 15%;
  --muted-foreground: 0 0% 70%;
  --accent: 328 100% 54%;
  --accent-foreground: 0 0% 100%;
  --border: 240 12% 20%;
  --input: 240 12% 20%;
  --ring: 207 100% 60%;
  --popover: 240 12% 12%;
  --popover-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --radius: 0.75rem;
}

/* ============================================
   RESET / BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 { font-family: 'Poppins', sans-serif; font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: #FFFFFF; margin: 0 0 1rem; }
h2 { font-family: 'Poppins', sans-serif; font-size: 1.875rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: #FFFFFF; margin: 0 0 0.75rem; }
h3 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: #FFFFFF; margin: 0 0 0.5rem; }
p, li { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.6; color: #FFFFFF; }
a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   LAYOUT
   ============================================ */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-muted { color: hsl(0 0% 70%); }
.text-primary { color: hsl(328 100% 54%); }
.text-secondary { color: hsl(207 100% 60%); }

/* ============================================
   CARD COMPONENTS
   ============================================ */
.glass-card {
  background: hsl(240 12% 8% / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsl(240 12% 20% / 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.3);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.card {
  background: hsl(240 12% 8%);
  border: 1px solid hsl(240 12% 20%);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.3);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  min-height: 2.75rem;
  background-color: hsl(328 100% 54%);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: none;
  border-radius: calc(0.75rem - 2px);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn-primary:hover { background-color: hsl(328 100% 54% / 0.9); text-decoration: none; }

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 9999px;
  min-height: 3.25rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: hsl(242 12% 4% / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(240 12% 20%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}
.site-logo img { height: 40px; width: auto; }
.primary-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.primary-nav a, .locations-trigger {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(0 0% 70%);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
}
.primary-nav a:hover, .locations-trigger:hover { color: hsl(328 100% 54%); text-decoration: none; }
.header-actions { display: flex; gap: 12px; align-items: center; margin-left: 18px; }
.header-icons { display: flex; gap: 12px; align-items: center; }
.header-icons a { display: inline-flex; width: 22px; height: 22px; opacity: 0.9; }
.header-icons a:hover { opacity: 1; }
.header-icons svg { width: 22px; height: 22px; fill: #fff; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: 8px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Header spacer — push content below fixed header */
.header-spacer { height: 72px; }

/* ============================================
   LOCATIONS DROPDOWN (desktop hover)
   ============================================ */
.locations-dropdown { position: relative; display: inline-flex; align-items: center; }
.locations-trigger { padding-bottom: 12px !important; }
.locations-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 4px 0 8px;
  margin-top: 0;
  background: #13131A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}
.locations-dropdown:hover .locations-dropdown-menu { display: block; }
.locations-dropdown.open .locations-dropdown-menu { display: block; }
.locations-dropdown-item {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.locations-dropdown-item:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .header-icons { display: none; }
  .nav-toggle { display: inline-flex; }

  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: #0B0B0F;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
  }
  body.nav-open .mobile-menu { display: block; }

  .mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-menu a:hover { color: hsl(328 100% 54%); text-decoration: none; }

  .mobile-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    cursor: pointer;
  }

  .locations-sub { display: none; }
  .locations-sub.open { display: block; }
  .locations-sub a { padding-left: 16px; color: hsl(0 0% 70%); font-size: 1rem; }

  .mobile-menu hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1rem 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: hsl(240 12% 8%);
  border-top: 1px solid hsl(240 12% 20%);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: hsl(0 0% 70%);
  text-decoration: none;
  padding: 0.375rem 0;
  transition: color 0.2s;
}
.footer-link:hover { color: hsl(328 100% 54%); text-decoration: none; }
.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .footer-socials { justify-content: center; }
}
.footer-socials a { display: inline-flex; }
.footer-socials svg { width: 24px; height: 24px; fill: hsl(0 0% 70%); transition: fill 0.2s; }
.footer-socials a:hover svg { fill: hsl(328 100% 54%); }
.footer-copyright {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid hsl(240 12% 20%);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: hsl(0 0% 70%);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: hsl(var(--card-foreground));
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
}
.faq-question:hover { color: hsl(var(--primary)); }
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: hsl(var(--primary));
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after { content: '-'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

/* ============================================
   PHOTO GRIDS
   ============================================ */
.photo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.photo-grid-3 img, .photo-grid-2 img { width: 100%; height: auto; border-radius: 0.75rem; display: block; }

@media (max-width: 600px) {
  .photo-grid-3 { grid-template-columns: 1fr !important; }
  .photo-grid-2 { grid-template-columns: 1fr !important; }
}

/* ============================================
   SHARE ICONS
   ============================================ */
.share-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: hsl(var(--primary));
  background: transparent;
  border: 2px solid hsl(var(--primary));
}
.icon-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
}
.icon-btn svg { width: 22px; height: 22px; display: block; }

/* Share toast */
.__share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}
.__share-toast.show { opacity: 1; visibility: visible; }

/* ============================================
   ACCESSIBILITY
   ============================================ */
a.button:focus, button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* ============================================
   TAILWIND UTILITY CLASSES (resolved)
   For static pages that don't have Tailwind
   ============================================ */

/* --- Typography --- */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.underline { text-decoration: underline; }
.leading-relaxed { line-height: 1.625; }

/* --- Colours --- */
.text-primary { color: hsl(328 100% 54%); }
.text-primary-foreground { color: #FFFFFF; }
.text-secondary-foreground { color: #FFFFFF; }
.text-muted-foreground { color: hsl(0 0% 70%); }
.bg-primary { background-color: hsl(328 100% 54%); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-primary { --tw-gradient-from: hsl(328 100% 54%); --tw-gradient-to: hsl(328 100% 54% / 0); }
.to-secondary { --tw-gradient-to: hsl(207 100% 60%); }
.border-primary { border-color: hsl(328 100% 54%); }
.border-secondary { border-color: hsl(207 100% 60%); }
.border-accent { border-color: hsl(328 100% 54%); }
.border-border { border-color: hsl(240 12% 20%); }
.hover\:bg-primary:hover { background-color: hsl(328 100% 54%); }
.hover\:bg-primary\/90:hover { background-color: hsl(328 100% 54% / 0.9); }
.hover\:text-primary-foreground:hover { color: #FFFFFF; }
.hover\:text-primary\/80:hover { color: hsl(328 100% 54% / 0.8); }
.hover\:underline:hover { text-decoration: underline; }

/* --- Spacing --- */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.ml-4 { margin-left: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-4 { padding-top: 1rem; }
.pt-24 { padding-top: 6rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-3 { gap: 0.75rem; }

/* --- Layout --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.max-w-4xl { max-width: 56rem; }

/* --- Visual --- */
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.list-disc { list-style-type: disc; }
.list-none { list-style-type: none; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

/* ============================================
   EVENT CARDS (homepage-matching design)
   ============================================ */
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 20px;
  background: #13131A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.event-card-image {
  position: relative;
  width: 200px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: hsl(142 76% 36%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
}
.event-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(0 0% 70%);
  font-size: 0.875rem;
}
.event-meta-item svg {
  flex-shrink: 0;
  stroke: hsl(328 100% 54%);
}
.event-card-btn {
  align-self: center;
}
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .event-card-image {
    width: 100%;
    height: 200px;
  }
  .event-card-btn {
    justify-self: center;
  }
}
