/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 0.1
*/

/* ===========================
   CUSTOM FONTS
   =========================== */

@font-face {
  font-family: 'Melt-Swashes';
  src: url('fonts/Melt-Swashes.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   DESIGN TOKENS
   =========================== */

:root {
  /* Brand Colors */
  --arch-green: #2E7D32;
  --arch-green-dark: #1B5E20;
  --arch-brick: #C62828;

  /* Light Mode Colors */
  --background: #FFFFFF;
  --secondary-background: #F2F2F7;
  --tertiary-background: #E5E5EA;
  --text-primary: #000000;
  --text-secondary: rgba(60, 60, 67, 0.6);
  --text-tertiary: rgba(60, 60, 67, 0.3);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  /* Semantic Colors */
  --color-error: #D32F2F;
  --color-warning: #F57C00;
  --color-success: var(--arch-green);

  /* Layout */
  --content-padding: clamp(16px, 5vw, 48px);
  --content-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===========================
   BASE STYLES
   =========================== */

html,
body {
  background: var(--background) !important;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--arch-green);

  &:visited {
    color: var(--arch-green-dark);
  }
}

/* WordPress overrides */
.wp-site-blocks,
.is-layout-constrained {
  background: transparent;
}

.wp-site-blocks {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.wp-block-group,
.wp-block-template-part {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.home-container > .wp-block-group,
.utility-zone.wp-block-group,
.content-zone.wp-block-group,
.events-section.wp-block-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.has-text-align-center {
  text-align: center;
}

/* ===========================
   SHARED PATTERNS
   =========================== */

/* Card base */
.venue-hours-card,
.event-card,
.activity-card,
.membership-tier-card,
.profile-card,
.auth-modal-content,
.event-detail-content {
  background: var(--secondary-background);
  border-radius: var(--radius-lg);
}

/* Button base */
.auth-submit,
.rsvp-button.large,
.primary-button,
.mobile-menu-auth {
  background: var(--arch-green);
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.2s;

  &:hover {
    opacity: 0.9;
    transform: scale(0.99);
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: var(--arch-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
  }
}

/* Error/Success messages */
.auth-error,
.event-error-message,
.profile-message.error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 10px;
  padding: 12px;
  color: var(--color-error);
  font-size: 13px;
  text-align: center;
}

.profile-message.success {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
}

/* Loading spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--tertiary-background);
  border-top-color: var(--arch-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--secondary-background) 25%, var(--tertiary-background) 50%, var(--secondary-background) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 80px;
}

/* Section divider */
.section-divider,
.tier-divider,
.event-divider {
  height: 1px;
  background: var(--tertiary-background);
  border: none;
  margin: 20px 0;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tertiary-background);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;

  img {
    height: 72px;
    width: auto;
  }
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s;

  &:hover {
    color: var(--arch-green);
    background: var(--secondary-background);
  }

  &.active {
    color: var(--arch-green);
    background: var(--secondary-background);
    font-weight: 600;
  }
}

/* Hamburger button */
.hamburger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;

  span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  &.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  &.active span:nth-child(2) {
    opacity: 0;
  }

  &.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 1000;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 8px;

  &.active {
    display: flex;
  }
}

.mobile-menu-link {
  display: block;
  padding: 16px;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;

  &:hover,
  &.active {
    background: var(--secondary-background);
    color: var(--arch-green);
  }

  &.active {
    font-weight: 600;
  }
}

.mobile-menu-divider {
  height: 1px;
  background: var(--tertiary-background);
  margin: 8px 0;
}

.mobile-menu-auth {
  margin-top: auto;
  padding: 16px;
  font-size: 16px;
  text-align: center;
}

/* ===========================
   AUTH UI
   =========================== */

.auth-container {
  position: relative;
  z-index: 1000;
}

.auth-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--secondary-background);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;

  &:hover {
    background: var(--tertiary-background);
    transform: scale(0.98);
  }

  &.signed-in {
    background: var(--arch-green);
    color: white;
  }
}

.user-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--arch-green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* User menu dropdown */
.user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--secondary-background);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

  &.active {
    display: block;
  }
}

.user-menu-item {
  display: block;
  box-sizing: border-box;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;

  &:hover {
    background: var(--tertiary-background);
  }

  &.danger {
    color: var(--color-error);
  }

  button& {
    width: 100%;
  }
}

/* Auth modal */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;

  &.active {
    display: flex;
  }
}

.auth-modal-content {
  padding: 32px;
  width: 100%;
  max-width: 400px;
  margin: 16px;

  h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    text-align: center;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--tertiary-background);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;

  &:focus {
    border-color: var(--arch-green);
  }

  &::placeholder {
    color: var(--text-tertiary);
  }
}

.auth-submit {
  width: 100%;
  padding: 12px 16px;
  font-size: 17px;
}

.auth-loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-tertiary);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.auth-resend-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--arch-green);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.9;
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.auth-toggle {
  text-align: center;
  margin-top: 16px;

  button {
    background: none;
    border: none;
    color: var(--arch-green);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
  }
}

.auth-error {
  display: none;

  &.visible {
    display: block;
  }
}

/* ===========================
   HOME PAGE
   =========================== */

.home-columns-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Photo hero - Auto-rotating carousel */
.photo-hero {
  max-width: 800px;
  margin: 0 auto 48px;
}

.photo-hero-images {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 600ms ease-in-out;

    &.active {
      opacity: 1;
      position: relative;
    }
  }

  /* Pause indicator */
  &.paused::after {
    content: '⏸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInOut 1s ease-in-out;
    pointer-events: none;
  }

  @keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
  }
}

.photo-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;

  &:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
  }

  &.active {
    background: var(--arch-green);
  }
}

/* ===========================
   UTILITY ZONE (Contact & Hours)
   =========================== */

.utility-zone {
  padding: 56px 0 48px;

  h2 {
    font-size: 22px !important;
    font-weight: 600;
    margin-bottom: 24px !important;
  }
}

.venue-hours-card {
  padding: 16px;
  margin-bottom: 24px;
}

.hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.hours-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--arch-green);

  &::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-radius: 50%;
    background-image: url('/wp-content/themes/twentytwentyfive-child/icons/clock.png');
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(35%) sepia(78%) saturate(844%) hue-rotate(86deg) brightness(95%) contrast(91%);
  }

  &.closed {
    color: var(--text-secondary);

    &::before {
      filter: brightness(0) saturate(100%) invert(20%) sepia(98%) saturate(7426%) hue-rotate(356deg) brightness(88%) contrast(114%);
    }
  }
}

.hours-chevron {
  display: block;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;

  &.expanded {
    transform: rotate(180deg);
  }
}

.hours-expanded {
  display: none;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--tertiary-background);

  &.visible {
    display: block;
  }
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);

  &.today {
    color: var(--text-primary);
    font-weight: 600;
  }
}

/* Quick action bar - Adaptive layout */
.quick-action-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;

  /* When hours are expanded, switch to horizontal compact layout */
  &.compact {
    flex-direction: row;
    gap: 8px;
  }
}

/* Quick action cards - Default vertical layout */
.quick-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--secondary-background);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s, padding 0.3s ease;

  &:hover {
    opacity: 0.8;
    transform: scale(0.99);
  }

  /* Compact horizontal layout */
  .compact & {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 10px 8px;
    gap: 6px;
  }
}

.action-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(35%) sepia(78%) saturate(844%) hue-rotate(86deg) brightness(95%) contrast(91%);
  transition: width 0.3s ease, height 0.3s ease;

  .compact & {
    width: 20px;
    height: 20px;
  }
}

.action-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  transition: all 0.3s ease;

  .compact & {
    align-items: center;
    gap: 0;
  }
}

.action-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: font-size 0.3s ease;

  .compact & {
    font-size: 11px;
  }
}

.action-card-detail {
  font-size: 15px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease, font-size 0.3s ease, max-height 0.3s ease;

  .compact & {
    display: none;
  }
}

.action-card-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: opacity 0.3s ease;

  .compact & {
    display: none;
  }
}

/* ===========================
   CONTENT ZONE (Events)
   =========================== */

.content-zone {
  padding: 56px 0 24px;
}

.events-section {
  margin-bottom: 32px;

  h2 {
    font-size: 22px !important;
    font-weight: 600;
    margin-bottom: 24px !important;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;

  h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
  }
}

.view-all-container {
  text-align: center;
  margin-top: 24px;
}

.view-all-link {
  color: var(--arch-green);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  display: inline-block;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.7;
  }
}

/* Event cards */
.event-cards,
.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;

  &:hover {
    transform: scale(1.01);
    background: var(--tertiary-background);
  }
}

.event-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--arch-green);
  border-radius: 10px;
  color: white;
  font-size: 20px;
  flex-shrink: 0;

  img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }
}

.event-info {
  flex: 1;
  min-width: 0;

  h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
  }

  p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
  }
}

/* Capacity indicators */
.capacity-indicator {
  font-weight: 500;

  &.spots-low {
    color: var(--text-secondary);
  }

  &.spots-urgent {
    color: var(--color-warning);
  }
}

/* RSVP button */
.rsvp-button {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--arch-green);
  border-radius: 10px;
  color: var(--arch-green);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;

  &:hover,
  &.attending {
    background: var(--arch-green);
    color: white;
  }

  &.large {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: none;

    &.primary {
      background: var(--arch-green);
      color: white;
    }

    &.danger {
      background: var(--color-error);
      color: white;
    }

    &.disabled,
    &:disabled {
      background: var(--tertiary-background);
      color: var(--text-tertiary);
      cursor: not-allowed;
      opacity: 0.6;
    }
  }
}

/* Grouped events by date */
.events-date-section {
  margin-bottom: 24px;
}

.date-section-header {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.events-in-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===========================
   EVENT DETAIL MODAL
   =========================== */

.event-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;

  &.visible {
    display: flex;
  }
}

.event-detail-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;

    &:hover {
      background: rgba(0, 0, 0, 0.7);
    }
  }
}

.event-detail-hero {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-icon {
  font-size: 80px;
  opacity: 0.3;
  filter: brightness(0) invert(1);
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }
}

.event-detail-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.event-header {
  margin-bottom: 20px;

  h2 {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-align: left;
  }
}

.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.badge-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }
}

.event-info-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.event-description-section {
  margin-bottom: 20px;

  h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
  }

  p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
  }
}

.event-error-message {
  margin-bottom: 16px;
}

/* ===========================
   PAGE TEMPLATES
   =========================== */

.page-container {
  min-height: 100vh;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 16px var(--content-padding) 40px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 16px;

  h1 {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
  }
}

/* Page hero (My Events, Profile pages) */
.page-hero {
  padding: 32px var(--content-padding);
  text-align: center;
}

.page-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

.content-section {
  padding: 0 var(--content-padding) 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* ===========================
   EVENTS PAGE
   =========================== */

.events-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 16px;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.filter-button {
  padding: 8px 16px;
  background: var(--secondary-background);
  border: none;
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;

  &:hover {
    background: var(--tertiary-background);
  }

  &.active {
    background: var(--arch-green);
    color: white;
  }
}

/* ===========================
   ACTIVITIES PAGE
   =========================== */

.activities-header {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 16px 16px 8px;
  margin: 0;
}

.activities-section {
  padding: 0 16px 24px;
}

.activities-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.activity-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
}

.activity-card-info {
  flex: 1;
  min-width: 0;

  h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
  }
}

.activity-card-status {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;

  &.none-available {
    color: var(--text-tertiary);
  }

  .all-in-use {
    color: var(--color-warning);
  }
}

/* ===========================
   PRIVATE EVENTS PAGE
   =========================== */

.private-events-content {
  padding: 32px 0;
}

.private-events-header {
  margin-bottom: 32px;

  h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
    color: var(--text-primary);
  }

  .intro-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
  }
}

.event-details-section {
  h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: var(--text-primary);
  }
}

.detail-placeholder {
  margin-bottom: 16px;

  .detail-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
  }
}

.coming-soon-notice {
  text-align: center;
  margin-top: 48px;

  p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
  }
}

/* Private Event Booking Form */
.private-events-content .wpcf7 {
  margin-top: 40px;
}

.private-events-content .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.private-events-content .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.private-events-content .wpcf7-form p {
  margin: 0;
  width: 100%;
}

.private-events-content .wpcf7-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.private-events-content .wpcf7-form input[type="text"],
.private-events-content .wpcf7-form input[type="email"],
.private-events-content .wpcf7-form input[type="tel"],
.private-events-content .wpcf7-form input[type="date"],
.private-events-content .wpcf7-form input[type="time"],
.private-events-content .wpcf7-form input[type="number"],
.private-events-content .wpcf7-form select,
.private-events-content .wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  color: var(--text-primary);
  background: var(--secondary-background);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.private-events-content .wpcf7-form input[type="text"]:focus,
.private-events-content .wpcf7-form input[type="email"]:focus,
.private-events-content .wpcf7-form input[type="tel"]:focus,
.private-events-content .wpcf7-form input[type="date"]:focus,
.private-events-content .wpcf7-form input[type="time"]:focus,
.private-events-content .wpcf7-form input[type="number"]:focus,
.private-events-content .wpcf7-form select:focus,
.private-events-content .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--arch-green);
  background: var(--tertiary-background);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.private-events-content .wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.private-events-content .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Remove number input spinners */
.private-events-content .wpcf7-form input[type="number"]::-webkit-inner-spin-button,
.private-events-content .wpcf7-form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.private-events-content .wpcf7-form input[type="number"] {
  -moz-appearance: textfield;
}

.private-events-content .wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 17px 24px;
  font-size: 17px;
  font-weight: 600;
  color: white;
  background: var(--arch-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.private-events-content .wpcf7-form input[type="submit"]:hover {
  background: var(--arch-green-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.private-events-content .wpcf7-form input[type="submit"]:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.private-events-content .wpcf7-spinner {
  margin-left: 12px;
}

.private-events-content .wpcf7-response-output {
  margin: 24px 0 0 0;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  text-align: center;
}

.private-events-content .wpcf7-validation-errors {
  background: rgba(255, 59, 48, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.private-events-content .wpcf7-mail-sent-ok {
  background: rgba(76, 175, 80, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.private-events-content .wpcf7-not-valid-tip {
  font-size: 13px;
  color: var(--color-error);
  margin-top: 6px;
  font-weight: 400;
}

/* Section divider spacing for forms */
.private-events-content .section-divider {
  margin: 32px 0;
  opacity: 0.3;
}

/* Form field grouping */
.private-events-content .form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.private-events-content .form-row > label,
.private-events-content .form-row > p {
  flex: 1;
  min-width: 0;
}

.private-events-content .form-row label {
  width: 100%;
}

@media (max-width: 640px) {
  .private-events-content .form-row {
    flex-direction: column;
  }
}

/* ===========================
   MEMBERSHIP PAGE
   =========================== */

.membership-content {
  padding: 24px 0;
}

.membership-header {
  h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-primary);
  }

  .intro-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
  }
}

.membership-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.membership-tier-card {
  padding: 20px;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;

  h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
  }
}

.tier-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--arch-green);
    line-height: 1;
  }

  .period {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
  }
}

.tier-divider {
  margin: 16px 0;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;

  li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);

    svg {
      flex-shrink: 0;
      stroke: var(--arch-green);
    }
  }
}

.membership-questions {
  margin-top: 16px;

  h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
  }

  p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
  }
}

/* ===========================
   PROFILE PAGE
   =========================== */

.profile-container {
  max-width: 480px;
  min-width: 280px;
  margin: 0 auto;
  padding: 32px var(--content-padding);
}

.profile-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-avatar {
  display: flex;
  justify-content: center;
}

.profile-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--arch-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: white;
}

.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.profile-email {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.profile-badge.unverified {
  display: inline-flex;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 149, 0, 0.15);
  color: var(--color-warning);
  cursor: pointer;
}

/* Membership banner */
.membership-banner {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  background: var(--arch-green);
  color: white !important;
  text-decoration: none;
  letter-spacing: 0.01em;

  &.no-membership {
    background: var(--tertiary-background);
    color: var(--arch-green) !important;
    transition: background 0.2s;

    &:hover {
      background: var(--secondary-background);
    }
  }
}

/* Profile actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--tertiary-background);
  padding-top: 8px;
}

.profile-action {
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;

  &:hover:not(:disabled) {
    color: var(--arch-green);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  &.danger {
    color: var(--color-error);
  }
}

.profile-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ===========================
   EMPTY & LOADING STATES
   =========================== */

.empty-state {
  text-align: center;
  padding: 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .empty-icon {
    width: 60px;
    height: 60px;
    color: var(--text-secondary);
    margin-bottom: 16px;
  }

  .empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
  }

  .empty-subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    margin: 0;
  }
}

.loading-state {
  text-align: center;
  padding: 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
  }
}

.primary-button {
  padding: 12px 24px;
  font-size: 17px;
  margin-top: 16px;
}

/* ===========================
   PRIVACY POLICY PAGE
   =========================== */

.privacy-policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 0;
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;

  h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
    color: var(--text-primary);
  }

  .policy-last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
  }
}

.policy-section {
  margin-bottom: 32px;

  h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
  }

  h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: var(--text-primary);
  }

  p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
  }

  ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style: disc;

    li {
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }
  }

  a {
    color: var(--arch-green);
    text-decoration: none;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.7;
    }
  }
}

.policy-contact {
  background: var(--secondary-background);
  padding: 24px;
  border-radius: var(--radius-lg);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 48px;
  justify-content: space-between;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--content-padding) 48px;
}

.footer-left {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.footer-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  margin: 0;

  img {
    width: clamp(180px, 20vw, 270px);
    height: auto;
    display: block;
  }
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 16px 0;
  line-height: 1.4;
  font-weight: 400;
}

.footer-contact {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 2;

  a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;

    &:hover {
      color: var(--text-primary);
    }
  }
}

.footer-map {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  iframe {
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: clamp(240px, 25vw, 350px);
    aspect-ratio: 14 / 9;
    height: auto;
  }
}

.footer-bottom {
  padding-top: 32px;
  max-width: 980px;
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.copyright {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  margin: 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.01em;

  a {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: var(--arch-green);
    }
  }
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Tablet and below */
@media (max-width: 840px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links,
  .auth-container {
    display: none;
  }

  .hamburger-button {
    display: block;
  }

  .home-columns-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quick-action-bar {
    /* Maintain vertical layout on mobile even when compact */
    &.compact {
      flex-direction: column;
      gap: 12px;
    }
  }

  .quick-action-card {
    /* Reset compact styles on mobile */
    .compact & {
      flex-direction: row;
      padding: 12px;
      gap: 12px;
    }
  }

  .action-card-icon {
    .compact & {
      width: 24px;
      height: 24px;
    }
  }

  .action-card-content {
    .compact & {
      align-items: flex-start;
      gap: 2px;
    }
  }

  .action-card-label {
    .compact & {
      font-size: 13px;
    }
  }

  .action-card-detail {
    .compact & {
      display: block;
      font-size: 15px;
    }
  }

  .action-card-chevron {
    .compact & {
      display: block;
    }
  }

  .photo-hero {
    margin: 0 0 32px;
  }

  .photo-hero-images {
    border-radius: 12px;
  }

  .site-footer {
    padding: 32px var(--content-padding);
  }

  .footer-content {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 32px;
    text-align: center;
  }

  .footer-left {
    max-width: 100%;
    text-align: center;
    order: 1;
  }

  .footer-center {
    order: 0;
  }

  .footer-map {
    justify-content: center;
    order: 2;
  }
}

/* Remove auto-expand on desktop - let user control it */

/* Mobile */
@media (max-width: 640px) {
  .profile-card {
    padding: 24px;
    gap: 24px;
  }

  .profile-avatar-circle {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-action-button {
    padding: 14px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-logo img {
    height: 56px;
  }

  .event-detail-modal {
    padding: 0;
  }

  .event-detail-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .event-detail-body {
    padding: 20px;
  }
}

/* ===========================
   TOAST NOTIFICATIONS
   =========================== */

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text-primary);
  color: var(--background);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  max-width: 90vw;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: var(--arch-green);
}

.toast.error {
  background: var(--color-error);
}
