/* Awake Events - Brand Styles */

/* Self-hosted fonts (vendored — see frontend/shared/VENDORED.md) */
@font-face {
  font-family: "Inter Variable";
  src: url("/shared/fonts/inter-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/shared/fonts/playfair-display-variable.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties - Awake Brand Colors */
:root {
  /* Primary */
  --awake-purple: #9a88d8;
  --awake-purple-dark: #897091;
  --awake-purple-light: #dfd7fa;

  /* Secondary */
  --awake-teal: #96bfcf;
  --awake-teal-light: #daf4ff;
  --awake-earth: #b39a88;
  --awake-olive: #727b49;
  --awake-forest: #5d5e48;
  --awake-sage: #b7d5e1;

  /* Accents */
  --awake-coral: #ae5d41;
  --awake-orange: #d7793f;
  --awake-blue: #8172b5;

  /* Neutrals */
  --awake-dark: #3b2116;
  --awake-cream: #f2f0e9;
  --awake-white: #ffffff;
  --awake-gray-100: #f8f7f5;
  --awake-gray-200: #e8e6e1;
  --awake-gray-300: #d4d1cb;
  --awake-gray-500: #9a9590;
  --awake-gray-700: #5c5955;

  /* Typography */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(59, 33, 22, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(59, 33, 22, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(59, 33, 22, 0.1);
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--awake-dark);
  background-color: var(--awake-gray-100);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

a {
  color: var(--awake-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--awake-purple-dark);
}

/* Header */
.header {
  background: var(--awake-white);
  border-bottom: 1px solid var(--awake-gray-200);
  padding: var(--space-md) var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
  width: auto;
}

.header-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--awake-dark);
}

/* Main layout */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-xl);
}

/* Sidebar filters (desktop) */
.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.filter-section {
  background: var(--awake-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--awake-dark);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--awake-gray-700);
  width: 100%;
}

.filter-option:hover {
  background-color: var(--awake-gray-100);
}

.filter-option.active {
  background-color: var(--awake-purple-light);
  color: var(--awake-purple-dark);
  font-weight: 500;
}

.filter-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--awake-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--awake-dark);
  background: var(--awake-white);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--awake-purple);
  box-shadow: 0 0 0 3px rgba(154, 136, 216, 0.2);
}

/* Search input (sidebar + mobile) */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--awake-gray-300);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) calc(var(--space-md) + 24px);
  border: 1px solid var(--awake-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--awake-dark);
  background: var(--awake-white);
}

.search-input::placeholder {
  color: var(--awake-gray-300);
}

.search-input:focus {
  outline: none;
  border-color: var(--awake-purple);
  box-shadow: 0 0 0 3px rgba(154, 136, 216, 0.2);
}

/* Mobile-only search field (sits above the filter chip row) */
.search-mobile {
  display: none;
  padding-top: var(--space-md);
}

@media (max-width: 768px) {
  .search-mobile {
    display: block;
  }
}

/* Mobile filter chips */
.filters-mobile {
  display: none;
  overflow-x: auto;
  padding: var(--space-md) 0;
  gap: var(--space-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters-mobile::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--awake-white);
  border: 1px solid var(--awake-gray-200);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--awake-gray-700);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--awake-purple);
}

.filter-chip.active {
  background: var(--awake-purple);
  border-color: var(--awake-purple);
  color: var(--awake-white);
}

.filter-chip svg {
  width: 16px;
  height: 16px;
}

/* Mobile filter dropdown — styled to match the pill chips next to it. */
.filter-chip-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) calc(var(--space-md) + 18px) var(--space-sm) var(--space-md);
  background-color: var(--awake-white);
  border: 1px solid var(--awake-gray-200);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--awake-gray-700);
  cursor: pointer;
  white-space: nowrap;
  max-width: 60vw;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5955' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  background-size: 14px 14px;
  transition: all 0.2s ease;
}

.filter-chip-select:hover {
  border-color: var(--awake-purple);
}

.filter-chip-select:focus {
  outline: none;
  border-color: var(--awake-purple);
  box-shadow: 0 0 0 3px rgba(154, 136, 216, 0.2);
}

.filter-chip-select.active {
  background-color: var(--awake-purple);
  border-color: var(--awake-purple);
  color: var(--awake-white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

/* Events grid */
.events-container {
  flex: 1;
  min-width: 0;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.events-count {
  color: var(--awake-gray-500);
  font-size: 0.9rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Event card */
.event-card {
  background: var(--awake-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--awake-gray-200);
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-card-image img {
  transform: scale(1.05);
}

.event-card-date-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--awake-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--awake-purple-dark);
  box-shadow: var(--shadow-md);
}

.event-card-type-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--awake-purple);
  color: var(--awake-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* External ticketing badge */
.event-card-external-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background: rgba(0, 0, 0, 0.75);
  color: var(--awake-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.event-card-external-badge::before {
  content: "\2197"; /* North-East Arrow */
  font-size: 0.9em;
}

/* External event card styling */
.event-card.external-event {
  border: 2px dashed var(--awake-gray-300);
}

.event-card-content {
  padding: var(--space-lg);
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--awake-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-facilitator {
  font-size: 0.9rem;
  color: var(--awake-purple);
  margin-bottom: var(--space-sm);
}

.event-card-datetime {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.event-card-date-inline {
  background: var(--awake-purple);
  color: var(--awake-white);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-card-time-inline {
  font-size: 0.85rem;
  color: var(--awake-gray-500);
  white-space: nowrap;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--awake-gray-500);
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.event-card-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.event-card-price {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--awake-gray-200);
  font-weight: 600;
  color: var(--awake-dark);
}

.event-card-price.free {
  color: var(--awake-olive);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--awake-gray-500);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--awake-dark);
  margin-bottom: var(--space-sm);
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--awake-gray-200);
  border-top-color: var(--awake-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Date picker input */
.date-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--awake-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--awake-dark);
  margin-top: var(--space-sm);
}

.date-input:focus {
  outline: none;
  border-color: var(--awake-purple);
}

/* Clear filters button */
.clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid var(--awake-gray-300);
  border-radius: var(--radius-md);
  color: var(--awake-gray-700);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filters:hover {
  background: var(--awake-gray-100);
  border-color: var(--awake-gray-500);
}

/* ========================= */
/* Event Detail Page Styles  */
/* ========================= */

.event-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.event-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  aspect-ratio: 21/9;
  background: var(--awake-gray-200);
}

.event-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-header {
  margin-bottom: var(--space-xl);
}

.event-detail-type {
  display: inline-block;
  background: var(--awake-purple-light);
  color: var(--awake-purple-dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.event-detail-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: 1rem;
  color: var(--awake-gray-700);
}

.event-detail-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.event-detail-meta-item svg {
  width: 20px;
  height: 20px;
  color: var(--awake-purple);
}

.event-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.event-description {
  background: var(--awake-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.event-description h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.event-description-text {
  color: var(--awake-gray-700);
  line-height: 1.8;
}

.event-description-text p {
  margin-bottom: var(--space-md);
}

/* Collapse empty Quill.js spacer paragraphs (<p><br></p>) */
.event-description-text p:empty,
.event-description-text p:has(> br:only-child) {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.event-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.event-sidebar-card {
  background: var(--awake-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.event-sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

/* Facilitator card */
.facilitator-card {
  display: flex;
  gap: var(--space-md);
}

.facilitator-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--awake-gray-200);
}

.facilitator-info {
  flex: 1;
}

.facilitator-name {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.facilitator-bio {
  font-size: 0.9rem;
  color: var(--awake-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ticket types */
.ticket-types {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ticket-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--awake-gray-100);
  border-radius: var(--radius-md);
}

.ticket-type-name {
  font-weight: 500;
}

.ticket-type-price {
  font-weight: 600;
  color: var(--awake-purple);
}

/* Book button */
.book-button {
  display: block;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--awake-purple);
  color: var(--awake-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.book-button:hover {
  background: var(--awake-purple-dark);
  color: var(--awake-white);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--awake-gray-500);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--awake-purple);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ========================= */
/* Responsive Styles         */
/* ========================= */

@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-sidebar {
    width: 240px;
  }

  .event-detail-content {
    grid-template-columns: 1fr;
  }

  .event-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .event-sidebar-card {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: var(--space-md);
  }

  .filters-sidebar {
    display: none;
  }

  .filters-mobile {
    display: flex;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-detail-title {
    font-size: 1.75rem;
  }

  .event-detail-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .event-hero {
    aspect-ratio: 16/9;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

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

[x-cloak] {
  display: none !important;
}

/* ========================= */
/* Facilitator Tooltip       */
/* ========================= */

.event-card-facilitator-wrapper {
  font-size: 0.9rem;
  color: var(--awake-purple);
  margin-bottom: var(--space-sm);
}

.event-card-facilitator-link {
  cursor: default;
}

.event-card-facilitator-link.clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.event-card-facilitator-link.clickable:hover {
  color: var(--awake-purple-dark);
}

.facilitator-tooltip {
  position: absolute;
  z-index: 1000;
  width: 280px;
  background: var(--awake-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(59, 33, 22, 0.2);
  padding: var(--space-md);
  animation: tooltipFadeIn 0.15s ease-out;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.facilitator-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--awake-white);
}

.facilitator-tooltip-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.facilitator-tooltip-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--awake-gray-200);
  flex-shrink: 0;
}

.facilitator-tooltip-info {
  flex: 1;
  min-width: 0;
}

.facilitator-tooltip-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--awake-dark);
  margin-bottom: var(--space-xs);
}

.facilitator-tooltip-bio {
  font-size: 0.85rem;
  color: var(--awake-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.facilitator-tooltip-loading {
  display: flex;
  justify-content: center;
  padding: var(--space-md);
}

/* Hide tooltip on mobile (touch devices) */
@media (hover: none) {
  .facilitator-tooltip {
    display: none !important;
  }
}

/* ========================= */
/* Shared Header Component   */
/* ========================= */

.shared-header {
  background: var(--awake-white);
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
}

.shared-header-top {
  margin-bottom: var(--space-lg);
}

.shared-logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.shared-logo {
  height: 163px;
  width: auto;
}

.shared-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.shared-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.shared-nav-link {
  color: var(--awake-dark);
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  transition: color 0.2s ease;
}

.shared-nav-link:hover {
  color: var(--awake-purple);
}

.shared-nav-link.active {
  color: var(--awake-purple);
}

.nav-separator {
  color: var(--awake-gray-300);
  font-weight: 300;
  user-select: none;
}

/* Desktop dropdown navigation */
.shared-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shared-nav-dropdown .shared-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shared-dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.shared-nav-dropdown:hover .shared-dropdown-arrow {
  transform: rotate(180deg);
}

.shared-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--awake-white);
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 100;
  padding: var(--space-sm) 0;
  margin-top: var(--space-xs);
}

.shared-nav-dropdown:hover .shared-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.shared-dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--awake-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.shared-dropdown-item:hover {
  background: var(--awake-gray-100);
  color: var(--awake-purple);
}

.shared-social-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: var(--space-md);
}

.shared-social-links a {
  color: var(--awake-gray-500);
  transition: color 0.2s ease;
}

.shared-social-links a:hover {
  color: var(--awake-purple);
}

.shared-social-icon {
  width: 20px;
  height: 20px;
}

/* Mobile menu toggle button */
.shared-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--awake-dark);
}

.shared-nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile overlay */
.shared-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.shared-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile slide-out menu */
.shared-mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--awake-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
}

.shared-mobile-menu.open {
  right: 0;
}

.shared-mobile-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--awake-gray-500);
}

.shared-mobile-close svg {
  width: 24px;
  height: 24px;
}

.shared-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.shared-mobile-link {
  display: block;
  padding: var(--space-md);
  color: var(--awake-dark);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.shared-mobile-link:hover {
  background: var(--awake-gray-100);
  color: var(--awake-purple);
}

.shared-mobile-link.active {
  background: var(--awake-purple-light);
  color: var(--awake-purple-dark);
}

/* Mobile dropdown navigation */
.shared-mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.shared-mobile-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shared-mobile-dropdown-header .shared-mobile-link {
  flex: 1;
}

.shared-mobile-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-md);
  color: var(--awake-gray-500);
  transition: color 0.2s ease;
}

.shared-mobile-dropdown-toggle:hover {
  color: var(--awake-purple);
}

.shared-mobile-dropdown-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.shared-mobile-dropdown.open .shared-mobile-dropdown-toggle svg {
  transform: rotate(180deg);
}

.shared-mobile-submenu {
  display: none;
  padding-left: var(--space-lg);
  flex-direction: column;
  gap: var(--space-xs);
}

.shared-mobile-dropdown.open .shared-mobile-submenu {
  display: flex;
}

.shared-mobile-sublink {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--awake-gray-600);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.shared-mobile-sublink:hover {
  background: var(--awake-gray-100);
  color: var(--awake-purple);
}

.shared-mobile-social {
  display: flex;
  gap: var(--space-lg);
  margin-top: auto;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--awake-gray-200);
}

.shared-mobile-social a {
  color: var(--awake-gray-500);
}

.shared-mobile-social a:hover {
  color: var(--awake-purple);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .shared-nav-links,
  .shared-social-links {
    display: none;
  }

  .shared-nav-toggle {
    display: block;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
  }

  .shared-header {
    padding: var(--space-lg) var(--space-md);
  }

  .shared-logo {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .shared-mobile-menu {
    width: 100%;
    right: -100%;
  }
}

/* ========================= */
/* View Toggle (Sidebar)     */
/* ========================= */

.view-toggle {
  display: flex;
  background: var(--awake-gray-100);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.view-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--awake-gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: var(--awake-dark);
}

.view-toggle-btn.active {
  background: var(--awake-white);
  color: var(--awake-purple-dark);
  box-shadow: var(--shadow-sm);
}

.view-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile view toggle chip */
.view-toggle-chip {
  display: none;
}

/* ========================= */
/* Calendar View             */
/* ========================= */

.calendar-container {
  flex: 1;
  min-width: 0;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.calendar-header-center {
  text-align: center;
}

.calendar-header-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--awake-dark);
}

.calendar-header-subtitle {
  font-size: 0.85rem;
  color: var(--awake-gray-500);
  margin-top: var(--space-xs);
}

.calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--awake-gray-200);
  border-radius: var(--radius-md);
  background: var(--awake-white);
  cursor: pointer;
  color: var(--awake-gray-700);
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  border-color: var(--awake-purple);
  color: var(--awake-purple);
}

.calendar-nav-btn svg {
  width: 18px;
  height: 18px;
}

.calendar-today-btn {
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--awake-gray-200);
  border-radius: var(--radius-md);
  background: var(--awake-white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--awake-gray-700);
  transition: all 0.2s ease;
}

.calendar-today-btn:hover {
  border-color: var(--awake-purple);
  color: var(--awake-purple);
}

/* Calendar grid layout */
.calendar-grid {
  background: var(--awake-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 70vh;
}

.calendar-day-headers {
  display: grid;
  grid-template-columns: 60px repeat(var(--cal-days, 7), 1fr);
  border-bottom: 1px solid var(--awake-gray-200);
  position: sticky;
  top: 0;
  background: var(--awake-white);
  z-index: 2;
}

.calendar-day-header {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--awake-gray-500);
}

.calendar-day-header-day {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
}

.calendar-day-header-num {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--awake-dark);
  margin-top: 2px;
}

.calendar-day-header.today .calendar-day-header-num {
  background: var(--awake-purple);
  color: var(--awake-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-day-header-spacer {
  border-right: 1px solid var(--awake-gray-200);
}

/* Calendar body */
.calendar-body {
  display: grid;
  grid-template-columns: 60px repeat(var(--cal-days, 7), 1fr);
  position: relative;
}

.calendar-time-column {
  border-right: 1px solid var(--awake-gray-200);
}

.calendar-time-slot {
  height: 60px;
  padding: 0 var(--space-sm);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: var(--awake-gray-500);
  position: relative;
  top: -8px;
}

.calendar-day-column {
  position: relative;
  border-right: 1px solid var(--awake-gray-200);
}

.calendar-day-column:last-child {
  border-right: none;
}

.calendar-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--awake-gray-200);
}

/* Calendar events */
.calendar-event {
  position: absolute;
  left: 3px;
  right: 3px;
  background: var(--awake-purple-light);
  border-left: 3px solid var(--awake-purple);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition:
    box-shadow 0.2s ease,
    transform 0.1s ease;
  text-decoration: none;
  display: block;
}

.calendar-event:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
  z-index: 2;
}

.calendar-event-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--awake-purple-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.calendar-event-time {
  font-size: 0.65rem;
  color: var(--awake-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-facilitator {
  font-size: 0.65rem;
  color: var(--awake-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Calendar empty day */
.calendar-empty-day {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: var(--awake-gray-300);
}

/* Calendar loading */
.calendar-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl);
}

/* ========================= */
/* Calendar Responsive       */
/* ========================= */

@media (max-width: 768px) {
  .view-toggle-chip {
    display: inline-flex;
  }

  .calendar-day-header {
    padding: var(--space-sm);
  }

  .calendar-nav-btn {
    width: 32px;
    height: 32px;
  }

  .calendar-header-title {
    font-size: 1.1rem;
  }

  .calendar-time-column {
    min-width: 50px;
  }
}

/* Language toggle */
#awake-lang-toggle {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 8px;
  font: inherit;
  border-radius: 4px;
  cursor: pointer;
}

/* Mobile language segmented control (lives inside the slide-out menu) */
.shared-mobile-lang {
  display: none;
}

@media (max-width: 900px) {
  #awake-lang-toggle {
    display: none;
  }

  .shared-mobile-lang {
    display: inline-flex;
    align-self: flex-start;
    margin-top: var(--space-lg);
    border: 1px solid var(--awake-gray-200);
    border-radius: 999px;
    overflow: hidden;
    background: var(--awake-white);
  }

  .shared-mobile-lang-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--awake-gray-700);
    cursor: pointer;
  }

  .shared-mobile-lang-btn + .shared-mobile-lang-btn {
    border-left: 1px solid var(--awake-gray-200);
  }

  .shared-mobile-lang-btn.active {
    background: var(--awake-purple);
    color: var(--awake-white);
  }
}

/* ======================================================================
   Featured banner (events listing)
   An event's own artwork already carries its name and dates, so the copy
   sits beside the image rather than on top of it.
   ====================================================================== */
.featured-strip {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) 0;
  display: grid;
  gap: var(--space-md);
}

.featured-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  min-height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--awake-dark);
  color: var(--awake-cream);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.featured-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -12px rgba(59, 33, 22, 0.35);
}

.featured-banner:focus-visible {
  outline: 3px solid var(--awake-orange);
  outline-offset: 3px;
}

.featured-banner__media {
  position: relative;
  min-height: 100%;
}

.featured-banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-banner:hover .featured-banner__media img {
  transform: scale(1.03);
}

.featured-banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) var(--space-xl);
}

.featured-banner__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--awake-orange);
}

.featured-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.15;
  margin: 0;
  color: var(--awake-white);
}

.featured-banner__dates {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  color: var(--awake-purple-light);
}

.featured-banner__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(242, 240, 233, 0.8);
}

.featured-banner__cta {
  align-self: flex-start;
  margin-top: var(--space-md);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--awake-orange);
  color: var(--awake-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-banner:hover .featured-banner__cta {
  background: var(--awake-coral);
}

@media (max-width: 860px) {
  .featured-strip {
    padding: var(--space-md) var(--space-md) 0;
  }
  .featured-banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .featured-banner__media {
    aspect-ratio: 16 / 9;
  }
  .featured-banner__body {
    padding: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-banner,
  .featured-banner__media img {
    transition: none;
  }
  .featured-banner:hover,
  .featured-banner:hover .featured-banner__media img {
    transform: none;
  }
}
