/* moderndemo.css - extracted from moderndemo.cfm */

/* Base Reset & Variables */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card: #5E5EA1;
  --card-foreground: #ffffff;
  --primary: #d4a855;
  --primary-foreground: #0a0a0a;
  --muted: #5E5EA1;
  --muted-foreground: #ffffff;
  --border: #5E5EA1;
  --ring: #d4a855;
  --purple: #5E5EA1;
}

html {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}

body {
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  padding-top: 74px;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}

/* Header Bar */
.menu-header-bar {
  max-width: 1400px;
  margin: 0 auto;
  height: 56px;
  background: #5E5EA1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  border-radius: 16px;
  position: relative;
}

.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 8px 16px 0 16px;
  background: white;
}

.header-logo {
  height: 36px;
  width: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Reposition logo to the left when it would overlap with icons */
@media (max-width: 600px) {
  .header-logo {
    position: static;
    transform: none;
    margin-left: 8px;
  }
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 8px;
}

.menu-header-bar h1 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-icon {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  margin-left: 10px;
}

/* Hide Spotlight text first when screen shrinks */
@media (max-width: 768px) {
  .menu-header-bar h1 {
    display: none;
  }
}

/* Hide logo only on very narrow screens */
@media (max-width: 480px) {
  .header-logo {
    display: none;
  }
}

/* Hide section header links (like URL) when screen is too narrow */
@media (max-width: 600px) {
  .section-header-bar .more-link:not(.header-links .more-link:first-child) {
    display: none;
  }
  .section-header-bar > .more-link {
    display: none;
  }
}

.header-right-icons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.header-right-icons svg {
  width: 18px;
  height: 18px;
  cursor: pointer;
  color: white;
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px 16px 16px;
}

/* Card Styles */
.card {
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 16px;
  padding: 16px 16px 24px 16px;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-section {
  background: #E6E6F8;
  border: 1px solid #E6E6F8;
  color: #1a1a1a;
}


.card-lg { padding: 24px; }

/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .profile-header { flex-direction: row; }
  .profile-image-section {
    flex: 0.75;
  }
}

/* Center the logo, main image, and buy tickets when layout wraps */
@media (max-width: 1023px) {
  .profile-header {
    align-items: center;
  }
  .profile-image-section {
    width: 100%;
    max-width: 600px;
    align-items: center;
  }
}

.profile-image-section {
  width: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.profile-image {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.profile-logo {
  max-width: 300px;
  max-height: 300px;
  height: auto;
  width: auto;
  display: block;
}

.buy-tickets-btn {
  display: inline-block;
  background: linear-gradient(180deg, #f5d98a 0%, #d4a855 40%, #b8912e 100%);
  color: var(--primary-foreground);
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.buy-tickets-btn:hover {
  background: linear-gradient(180deg, #ffe5a0 0%, #e4b865 40%, #c8a13e 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

.badge-verified {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-club {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

/* Days Away sash on thumbnail */
.one-day-sash {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 120px;
  pointer-events: none;
}

/* Hide sash on hover for our events */
.event-card-horizontal:hover .one-day-sash {
  display: none;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.action-btn {
  padding: 12px;
  border-radius: 9999px;
  background: rgba(94, 94, 161, 0.15);
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover { background: rgba(94, 94, 161, 0.25); }
.action-btn svg { color: var(--primary); }

.profile-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: auto;
  justify-content: flex-start;
  width: 90%;
}

.profile-thumb {
  flex: 0 0 calc(33.33% - 6px);
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile Info */
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
  text-align: center;
}

.info-rows-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 1px;
  color: #1a1a1a;
  font-size: 15px;
}

@media (max-width: 1023px) {
  .profile-info {
    text-align: center;
    align-items: center;
  }
  .info-rows-container {
    align-items: flex-start;
  }
  .info-row {
    justify-content: flex-start;
  }
  .profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.info-row svg { color: var(--primary); flex-shrink: 0; }

.divider {
  border: none;
  border-top: 1px solid rgba(94, 94, 161, 0.4);
  margin: 12px 0;
}

.description p {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.full-width-content {
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(94, 94, 161, 0.4);
}

.full-width-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.more-toggle {
  display: inline-block;
  background: var(--purple);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 24px;
  margin-left: 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.more-toggle:hover {
  background: #4a4a8a;
  text-decoration: none;
}

.expandable-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Section Headers */
.section-header-bar {
  background: #5E5EA1;
  margin: -16px -16px 32px -16px;
  padding: 6px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Center the Our Events toggle link */
.our-events-center-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
}

/* Responsive text for View All */
.view-all-short {
  display: none;
}

@media (max-width: 600px) {
  .view-all-full {
    display: none;
  }
  .view-all-short {
    display: inline;
  }
}

.more-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.more-link:hover {
  text-decoration: underline;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-divider {
  color: white;
  font-size: 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-logo {
  height: 28px;
  width: auto;
}

/* Photo Gallery */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
}

.photo-item {
  aspect-ratio: 16/9;
  background: rgba(94, 94, 161, 0.15);
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 200px;
  min-width: 150px;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Events */
.event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 12px;
}

.event-date {
  text-align: center;
  min-width: 50px;
}

.event-day {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.event-month {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

.event-details h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.event-time {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.event-badge {
  display: inline-block;
  background: rgba(212, 168, 85, 0.3);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 8px;
}

/* Horizontal Events Layout */
.events-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 33px;
  overflow: visible;
  padding: 0 12px 12px 12px;
  justify-content: center;
}

/* GLOBAL: Event cards NEVER wider than 200px */
.event-card-wrapper,
.event-card-horizontal {
  max-width: 200px !important;
}

.events-horizontal.partner-events {
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  overflow: hidden;
  /* Allow cards to expand on hover */
  min-height: 250px;
  max-width: 100%;
  justify-content: center;
}

.events-horizontal.partner-events.expanded {
  flex-wrap: wrap;
  max-height: none;
  overflow-x: visible;
}

.events-horizontal.partner-events.expanded .partner-event-card {
  flex: 0 0 calc(16.66% - 10px);
  min-width: 120px;
  max-width: 180px;
}

.event-card-horizontal {
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px !important;
  height: auto;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Only scale partner event cards on hover */
.event-card-horizontal.partner-event-card:hover {
  transform: scale(1.05);
}

/* Allow wrapping on mobile */
@media (max-width: 600px) {
  .events-horizontal:not(.partner-events) {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .events-horizontal:not(.partner-events) .event-card-horizontal {
    flex: 0 0 calc(50% - 5px);
    min-width: 140px;
    max-width: 200px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  /* Ensure text always displays on narrow viewports */
  .events-horizontal:not(.partner-events) .event-info {
    display: block !important;
  }
  .events-horizontal:not(.partner-events) .event-description-text {
    display: block !important;
  }
}

@media (max-width: 400px) {
  .events-horizontal:not(.partner-events) .event-card-horizontal {
    flex: 0 0 calc(50% - 5px);
    min-width: 140px;
    max-width: 200px !important;
  }
}

.event-card-horizontal.partner-event-card {
  flex: 0 0 calc(16.66% - 10px);
  min-width: 140px;
  max-width: 200px;
  height: auto;
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
  box-shadow: none;
}

/* Partner events wrap on narrow screens */
@media (max-width: 900px) {
  .events-horizontal.partner-events {
    flex-wrap: wrap;
    justify-content: center;
  }
  .event-card-horizontal.partner-event-card {
    flex: 0 0 calc(25% - 10px);
    min-width: 140px;
    max-width: 180px;
  }
}

@media (max-width: 600px) {
  .events-horizontal.partner-events {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .event-card-horizontal.partner-event-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 140px;
    max-width: 180px;
  }
}

@media (max-width: 400px) {
  .event-card-horizontal.partner-event-card {
    flex: 0 0 100%;
    min-width: 140px;
    max-width: 100%;
  }
}

.event-card-horizontal.partner-event-card .event-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Partner events maintain square on hover */
.event-card-horizontal.partner-event-card:hover .event-image-wrapper {
  overflow: hidden;
}

.partner-event-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.partner-event-date {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-event-location {
  font-size: 10px;
  color: #666;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.event-card-horizontal .event-image-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.event-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #5E5E9C;
  padding: 6px 6px;
  border-radius: 12px 12px 0 0;
}

.event-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.event-icon:hover {
  opacity: 0.8;
}

.event-icon svg {
  width: 18px;
  height: 18px;
}

.event-icon.icon-plus svg {
  color: #d4a855;
}

.event-icon.icon-eyeball svg {
  color: #5E5EA1;
}

.event-attend-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #5E5EA1;
  border: none;
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.event-attend-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.event-attendees {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  justify-content: center;
}

.event-attendee {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.event-attendee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Reviews */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px;
  margin: -8px;
}

.review-card {
  background: rgba(94, 94, 161, 0.15);
  border-radius: 12px;
  padding: 16px;
  flex: 1 1 250px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stars { color: #eab308; margin-bottom: 8px; }

.review-text {
  color: #333;
  font-size: 14px;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: #666;
}

/* Friends Grid - responsive, no wrapping (wraps when expanded) */
.friends-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  padding: 8px;
  margin: -8px;
  overflow: visible;
}

.friends-grid.expanded {
  flex-wrap: wrap;
  overflow: visible;
}

.friend-card {
  flex: 0 0 auto;
}

.friends-grid.expanded .friend-card {
  flex: 0 0 auto;
}

.friend-card img {
  display: block;
  width: 100px;
  height: auto;
}

/* Page Ends Here Divider */
.page-end-divider {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.page-end-divider span {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Footer */
footer {
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  margin-top: 24px;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.app-buttons img {
  height: 40px;
  width: auto;
}

.footer-text {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

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

.copyright {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* Event description blocks in profile info */
/* Event description cards with alternating backgrounds */
.event-description-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #f8f8fc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.producer-edit-text {
  display: block;
  color: #dc3545;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.event-description-card:nth-child(even) {
  background: #f0f0f5;
}

.event-description-card:last-child {
  margin-bottom: 0;
}

.event-description-title {
  font-size: 16px;
  font-weight: 600;
  color: #5E5EA1;
  margin-bottom: 8px;
}

.event-description-card .event-description-preview {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.event-description-card .event-description-full {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.view-more-link {
  color: #5E5EA1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.view-more-link:hover {
  text-decoration: underline;
}

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

.view-all-events-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #5E5EA1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.view-all-events-btn:hover {
  background: #4e4e91;
}

/* Developer Rules section styles */
.developer-rules-container {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.developer-rules-container h3 {
  color: #5E5EA1;
  font-size: 18px;
  margin: 24px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #5E5EA1;
}

.developer-rules-container h3:first-child {
  margin-top: 0;
}

.developer-rules-container h4 {
  color: #333;
  font-size: 15px;
  margin: 0 0 10px 0;
}

.rule-section {
  background: #f8f8fc;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.rule-section ul {
  margin: 0;
  padding-left: 20px;
}

.rule-section li {
  margin-bottom: 6px;
  color: #444;
}

.rule-section code {
  background: #e8e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  color: #5E5EA1;
}

.rule-section pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0;
}

.rule-section pre code {
  background: none;
  padding: 0;
  color: #f8f8f2;
  font-size: 11px;
}

/* Upscale link styles */
.upscale-link-container {
  text-align: center;
  margin-top: 8px;
}

.upscale-link {
  color: #5E5EA1;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.upscale-link:hover {
  text-decoration: underline;
  color: #4E4E91;
}

.upscale-success {
  color: #28a745;
  font-size: 12px;
  font-weight: 500;
}

/* Hide Developer Implementation Guide (temporarily hidden, can be unhidden later) */
#developer-guide-section {
  display: none !important;
}

/* Data Reference section styles */
.data-reference-container {
  padding: 16px;
}

.data-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  overflow-x: auto;
  align-items: flex-start;
  padding: 16px;
}

.data-cards-grid.horizontal-scroll {
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}

.data-cards-grid.horizontal-scroll::-webkit-scrollbar {
  height: 10px;
}

.data-cards-grid.horizontal-scroll::-webkit-scrollbar-track {
  background: #e8e8f0;
  border-radius: 5px;
}

.data-cards-grid.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #5E5EA1;
  border-radius: 5px;
}

.data-cards-grid.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: #4e4e91;
}

.json-card {
  flex: 0 0 calc(25% - 12px);
  min-width: 250px;
  background: #f8f8fc;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
}

.data-cards-grid.horizontal-scroll .json-card {
  flex: 0 0 280px;
  min-width: 280px;
}

.json-section-header {
  background: #5E5EA1;
  color: white;
  padding: 6px 10px;
  margin: 12px -12px 8px -12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.json-section-header:first-child {
  margin-top: -12px;
  border-radius: 7px 7px 0 0;
}

.json-field {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.json-field.json-field-issue {
  background: linear-gradient(135deg, #fee 0%, #fcc 100%);
  border: 3px solid #e74c3c;
  border-radius: 8px;
  padding: 10px;
  margin: 8px -6px 12px -6px;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  animation: pulse-highlight 1s ease-in-out infinite;
}

.json-field.json-field-issue .json-key {
  background: #e74c3c;
  color: white;
}

@keyframes pulse-highlight {
  0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
  50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); }
}

.json-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.json-key {
  display: block;
  font-weight: 700;
  color: #5E5EA1;
  background: #e8e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 10px;
  margin-bottom: 4px;
}

.json-value {
  display: block;
  color: #333;
  word-break: break-word;
  font-size: 10px;
  line-height: 1.4;
}

.json-value.null {
  color: #999;
}

.json-field-image {
  padding-bottom: 12px;
  overflow: hidden;
  max-width: 300px;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 0;
  padding-right: 0;
}

.json-image {
  max-width: 300px !important;
  width: 300px !important;
  height: auto !important;
  display: block !important;
  border-radius: 4px 4px 0 0;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-bottom: none;
}

.json-image-dimensions {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 0 0 4px 4px;
  border: 1px solid #ddd;
  border-top: none;
  font-weight: 600;
}

.json-image-scaled {
  color: #5E5EA1;
  font-weight: 700;
  margin-left: 8px;
}

.json-field-highlighted {
  background: #e8f5e9;
  padding: 8px;
  border-radius: 6px;
  border: 2px solid #2d6a2d;
}

.json-field-highlighted .json-key {
  background: #2d6a2d;
  color: white;
}

/* Contact info section styling */
.contact-info-section {
  margin-top: 16px;
  padding: 12px;
  background: #f8f8fc;
  border-radius: 8px;
}

.contact-item {
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item a {
  color: #5E5EA1;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-icon {
  flex-shrink: 0;
}

/* Contact info inline within description card */
.contact-info-inline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(94, 94, 161, 0.2);
}

/* Profile logo image with glow shadow all around for transparent logos */
.profile-logo-image {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 16px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* Fallback logo container with red outline */
.fallback-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 3px solid #dc3545;
  border-radius: 16px;
  background: #fff5f5;
}

.fallback-logo {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 8px;
  background: white;
}

.fallback-logo-label {
  margin-top: 12px;
  font-size: 12px;
  color: #dc3545;
  font-weight: 600;
  text-align: center;
}

/* Your Logo placeholder styling */
.your-logo-placeholder {
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(135deg, #e8e8f0 0%, #f5f5fa 50%, #e8e8f0 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed #5E5EA1;
}

.your-logo-placeholder span.party-text {
  font-size: 22px;
  font-weight: 700;
  color: #5E5EA1;
  opacity: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.missing-logo-icon {
  opacity: 1;
}

/* Generated logo styling */
.generated-logo {
  width: 100%;
  padding: 40px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  min-height: 200px;
}

/* Style generated logo when used in event cards */
.event-card-horizontal .event-image-wrapper .generated-logo {
  height: 100%;
  width: 100%;
  padding: 40px 20px;
  border-radius: 12px 12px 0 0;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(20,20,30,0.05) 0%, rgba(40,40,50,0.08) 100%);
}

.generated-logo-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.generated-logo-text {
  font-size: 42px;
  font-weight: 700;
  font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
}

.generated-logo-venue {
  font-size: 36px;
  font-weight: 600;
  font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
  opacity: 0.9;
}

.generated-logo-initials {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Styles for event cards - wrapping with fixed 300px width */
#events-container.events-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  overflow: visible;
  padding: 0 0 12px 0;
  align-items: flex-start;
  justify-content: center;
}

/* Keep events centered for wrapping */
#events-container.events-horizontal.centered {
  justify-content: center;
}

.event-card-horizontal {
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px !important;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #ddd;
}

/* Wrapper for card and buttons */
.event-card-wrapper {
  display: flex;
  flex-direction: column;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px !important;
  min-width: 140px;
  position: relative;
}

/* Flag button for admin pages */
.event-flag-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  background: #e74c3c;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.event-flag-btn:hover {
  background: #c0392b;
  transform: scale(1.15);
}
.event-flag-btn svg {
  stroke: white;
  stroke-width: 3;
}

/* Past event recessed styling - more pronounced */
.event-card-wrapper.past-event .event-card-horizontal {
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.15);
  background: #ebebeb;
  border-color: #bbb;
  opacity: 0.85;
}

/* Omitted event styles */
.event-card-wrapper.omitted-event {
  background: #f5f5f5;
  border: 2px dashed #999;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.omitted-event-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.omitted-event-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  padding: 10px 15px;
  background: #e0e0e0;
  border-radius: 6px;
  cursor: default;
}

.omitted-event-status {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: none;
  letter-spacing: 0.5px;
  font-style: italic;
  line-height: 1.4;
}

/* Description issue card - banned keyword violations */
.event-card-wrapper.description-issue {
  background: #fff5f5;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.event-card-wrapper.description-issue .omitted-event-name {
  color: #c0392b;
}

.event-card-wrapper.description-issue .omitted-event-status {
  color: #e74c3c;
  font-style: normal;
}

.event-card-wrapper.not-approved {
  border: 3px solid #e74c3c;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* Status reason box for flagged/review events */
.status-reason-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: #856404;
  line-height: 1.4;
}

.status-reason-box strong {
  color: #664d03;
}

.event-card-wrapper .event-card-horizontal {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
}

.event-buttons-outside {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0;
}

.event-buttons-outside .event-link-small {
  flex: 1 1 auto;
  min-width: 100px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Make days away button full width on its own line */
.event-buttons-outside .event-link-small.soon {
  flex: 1 1 100%;
  background: #E890B0;
  color: white;
}

.event-buttons-outside .event-link-small:hover {
  background: #e0e0e0;
}

.event-buttons-outside .event-link-small.primary {
  background: #5E5EA1;
  color: white;
}

.event-buttons-outside .event-link-small.primary:hover {
  background: #4e4e91;
}

.event-buttons-outside .event-link-small.buy {
  background: #d4a855;
  color: white;
}

.event-buttons-outside .event-link-small.buy:hover {
  background: #c49745;
}

.event-buttons-outside .event-link-small.soon:hover {
  background: #D87098;
}

/* Make days ago button full width on its own line with grey color */
.event-buttons-outside .event-link-small.past {
  flex: 1 1 100%;
  background: #888888;
  color: white;
}

.event-buttons-outside .event-link-small.past:hover {
  background: #777777;
}

.event-buttons-outside .event-link-small.commission-indicator {
  flex: 0 0 5px;
  min-width: 5px;
  width: 5px;
  background: #2d6a2d;
  padding: 8px 0;
  cursor: default;
  border-radius: 4px;
}

.event-buttons-outside .event-link-small.commission-indicator:hover {
  background: #2d6a2d;
}

/* More Info button styling */
.event-more-info-btn {
  display: inline-block;
  background: linear-gradient(180deg, #f5d98a 0%, #d4a855 40%, #b8912e 100%);
  color: #0a0a0a;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
  text-align: center;
  flex: 1 1 auto;
  min-width: 100px;
}

.event-more-info-btn:hover {
  background: linear-gradient(180deg, #ffe5a0 0%, #e4b865 40%, #c8a13e 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

.event-card-horizontal .event-link {
  display: block;
  text-decoration: none;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.event-card-horizontal .event-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #E6E6F8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-horizontal .event-image-wrapper > img:not(.one-day-sash) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  background: #E6E6F8;
}

/* Gold borders for all card sections */
.card-section {
  border: 3px solid gold;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-section .section-header-bar {
  border: 3px solid gold;
  border-bottom: none;
  margin: -16px -19px 32px -19px;
  border-radius: 16px 16px 0 0;
}

/* Our Events - keep square on hover */
#our-events-section .event-image-wrapper:hover {
  z-index: 10;
}

/* Partner event images - square with centered image */
.partner-event-card .event-image-wrapper {
  aspect-ratio: 1 / 1;
}

.partner-event-card .event-image-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #E6E6F8;
}

/* No Banner placeholder styling */
.event-card-horizontal .no-banner-placeholder {
  width: 100%;
  padding: 40px 10px;
  background: linear-gradient(135deg, #e8e8f0 0%, #f5f5fa 50%, #e8e8f0 100%);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px dashed #5E5EA1;
}

.event-card-horizontal .no-banner-placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: #5E5EA1;
  opacity: 0.7;
}

/* Red warning buttons for missing images */
.image-warning-btn {
  width: 100%;
  padding: 8px 10px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Red warning bar for missing event descriptions */
.description-warning-bar {
  width: 100%;
  padding: 8px 10px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  border-radius: 4px;
}

/* Blank placeholder for events with no description - maintains height */
.description-placeholder {
  min-height: 100px;
  margin-top: 6px;
  border-top: 1px solid transparent;
  padding-top: 6px;
  padding-bottom: 8px;
}

.event-card-horizontal .event-info {
  padding: 8px;
  padding-bottom: 16px;
  text-align: left;
  font-size: 10px;
  flex: 1;
  overflow: hidden;
}

.event-card-horizontal .event-name {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.3;
  min-height: 29px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-horizontal .event-date-time {
  font-size: 9px;
  color: #5E5EA1;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-card-horizontal .event-type-badge {
  display: inline-block;
  background: #5E5EA1;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  margin-bottom: 4px;
}

/* Contact section with fixed height for consistency */
.event-card-horizontal .event-contact-section {
  min-height: 39px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.event-card-horizontal .event-venue,
.event-card-horizontal .event-site,
.event-card-horizontal .event-timezone,
.event-card-horizontal .event-location,
.event-card-horizontal .event-url,
.event-card-horizontal .event-contact {
  font-size: 9px;
  color: #666;
  margin-bottom: 2px;
  line-height: 1.3;
}

.event-card-horizontal .event-url a {
  color: #5E5EA1;
  text-decoration: none;
}

.event-card-horizontal .event-url a:hover {
  text-decoration: underline;
}

/* Restrict address to single line */
.event-card-horizontal .event-location {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-horizontal .event-venue {
  font-weight: 600;
  color: #333;
}

.event-card-horizontal .event-description-text {
  font-size: 11px;
  color: #555;
  margin: 6px 0 0 0;
  line-height: 1.5;
  border-top: 1px solid #eee;
  padding-top: 6px;
  padding-bottom: 8px;
  /* Fixed height for 3 lines: 11px * 1.5 * 3 = 49.5px, round to 50px */
  height: 50px;
  min-height: 50px;
  max-height: 50px;
}

.event-card-horizontal .event-description-text .description-content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* Placeholder for events without description - same height */
.event-card-horizontal .description-placeholder {
  height: 50px;
  min-height: 50px;
  margin: 6px 0 0 0;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

/* Sample label above event images */
.event-image-wrapper .sample-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
}

/* HTML Issue flag for descriptions with broken/stripped HTML */
.event-card-horizontal .event-description-text.html-issue {
  border-top-color: #e74c3c;
}

.event-card-horizontal .html-issue-flag {
  display: inline-block;
  background: #e74c3c;
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* Description expands from 300 to 500 chars on hover */

.event-card-horizontal .event-description-text .read-more-link {
  display: none;
}

/* Buttons at the bottom of card */
.event-card-horizontal .event-buttons-bottom {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.event-card-horizontal .event-link-small {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #f0f0f0;
  color: #333;
}

.event-card-horizontal .event-link-small.with-subtext {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
}

.event-card-horizontal .event-link-small .btn-subtext {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #E74C3C;
  margin-top: 1px;
}

.event-card-horizontal .event-link-small:hover {
  background: #e0e0e0;
}

.event-card-horizontal .event-link-small.primary {
  background: #5E5EA1;
  color: white;
}

.event-card-horizontal .event-link-small.primary:hover {
  background: #4e4e91;
}

.event-card-horizontal .event-link-small.buy {
  background: #d4a855;
  color: white;
}

.event-card-horizontal .event-link-small.buy:hover {
  background: #c49745;
}

.event-card-horizontal .event-link-small.expired {
  background: #E74C3C;
  color: white;
}

.event-card-horizontal .event-link-small.expired:hover {
  background: #C0392B;
}

.event-card-horizontal .event-link-small.soon {
  background: #333333;
  color: white;
}

.event-card-horizontal .event-link-small.soon:hover {
  background: #1a1a1a;
}

/* Empty placeholder card styles */
.event-card-horizontal.empty-card {
  opacity: 0.3;
}

.event-card-horizontal.empty-card {
  opacity: 0.3;
}

/* Club info text styling */
.club-info-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* Host description text - images float wrap */
.host-description-text {
  line-height: 1.7;
}

.host-description-text img,
.host-description-text video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Mobile: Disable image floats in description - stack images instead */
@media (max-width: 768px) {
  .host-description-text img,
  .host-description-text video {
    float: none !important;
    display: block !important;
    margin: 15px auto !important;
    max-width: 100% !important;
    width: auto !important;
  }
}

/* Keep horizontal scrolling on all screen sizes */
