/* 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;
}

/* Breadcrumb navigation */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 16px 0;
  font-size: 13px;
  color: var(--muted-foreground, #999);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.breadcrumb-item {
  white-space: nowrap;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: #333;
}

.breadcrumb a {
  color: var(--primary, #d4a855);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-item:last-child {
  color: var(--foreground, #1a1a1a);
}

/* 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;
}

/* Card styles moved to /css/event-cards.css */

.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;
}

/* Card styles moved to /css/event-cards.css */

.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;
}


/* 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;
}

/* Card styles moved to /css/event-cards.css */

/* 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 */
