/* Event Detail Page Styles */
/* https://events.swing.com/css/eventdetail.css */

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

body {
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  padding-top: 74px;
  min-height: 100vh;
}

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

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 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;
}

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

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

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

.profile-info {
  flex: 1 1 300px;
  min-width: 280px;
}

@media (max-width: 700px) {
  .profile-info {
    width: 100%;
  }
}

.profile-image-wrapper {
  position: relative;
  width: 100%;
}

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

/* Logo and Flyer Row */
.logo-flyer-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.logo-flyer-row > .profile-logo-container {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 0;
}

.logo-flyer-row > .profile-image-section {
  flex: 1 1 50% !important;
  max-width: 50% !important;
}

@media (max-width: 768px) {
  .logo-flyer-row {
    flex-direction: column !important;
  }
  .logo-flyer-row > .profile-logo-container,
  .logo-flyer-row > .profile-image-section {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

.profile-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.profile-logo {
  max-width: 50%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
}

/* Logo and Buttons Row */
.logo-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.logo-buttons-row .profile-logo-container {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.logo-buttons-row .action-buttons {
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  .logo-buttons-row {
    flex-direction: column;
    align-items: center;
  }
  .logo-buttons-row .action-buttons {
    margin-top: 16px !important;
  }
}

/* Event Info Section */
.event-info-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(94, 94, 161, 0.1);
  border-radius: 12px;
}

.event-info-section .profile-name {
  margin-bottom: 16px;
}

.event-info-section p {
  margin-bottom: 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.action-buttons {
  display: flex !important;
  gap: 12px !important;
  margin-top: 16px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.action-buttons .buy-tickets-btn,
.action-buttons .more-info-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #f5d98a 0%, #d4a855 40%, #b8912e 100%) !important;
  color: #0a0a0a !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4) !important;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3) !important;
  line-height: 1 !important;
  width: 150px !important;
  height: 44px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 150px !important;
}

/* Mobile action buttons - stack vertically */
@media (max-width: 500px) {
  .action-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 16px !important;
  }
  .action-buttons .buy-tickets-btn,
  .action-buttons .more-info-btn {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }
}

@media (max-width: 350px) {
  .action-buttons .buy-tickets-btn,
  .action-buttons .more-info-btn {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

.buy-tickets-btn:hover,
.more-info-btn:hover,
.add-me-btn:hover {
  background: url('/events/images/goldsheet6.jpg') center/cover no-repeat;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
  filter: brightness(1.1);
}

.add-me-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url('/events/images/goldsheet6.jpg') center/cover no-repeat;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 40px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

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

.profile-info .description {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.profile-info .description p {
  margin-bottom: 12px;
}

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

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

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

/* Attendee Cards (fan-card structure) */
#attendees-section .fan-card-wrapper .cc-card {
  box-shadow: 0 0 12px rgba(94,94,161,0.5), 0 0 4px rgba(94,94,161,0.3);
  border-radius: 0.5rem;
  overflow: hidden;
}
#attendees-section .fan-card-wrapper .cc-aspect {
  border-radius: 0.5rem;
}

/* Events Horizontal */
/* Events section - defer to moderndemo.css styles */

/* Partner event cards - defer to moderndemo.css */

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

/* Error message */
.error-message {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error-message h2 {
  color: #5E5EA1;
  margin-bottom: 16px;
}

/* Back link */
.back-link {
  display: inline-block;
  color: #5E5EA1;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* Reduce header margin for event detail card */
.card-section:has(.event-detail-content) .section-header-bar {
  margin-bottom: 15px;
}

/* Event Detail Combined Content */
.event-detail-content {
  padding: 0 20px 20px 20px;
  margin: 0;
}

.event-detail-logo {
  float: left;
  margin: 0 20px 10px 0;
  max-width: 200px;
}

.event-detail-logo img,
.event-detail-logo video {
  max-width: 200px;
  max-height: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(0, 0, 0, 0.2));
}

.event-detail-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 15px !important;
  margin-top: 20px !important;
}

.event-detail-buttons .buy-tickets-btn,
.event-detail-buttons .more-info-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: url('/events/images/goldsheet6.jpg') center/cover no-repeat !important;
  color: #0a0a0a !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4) !important;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3) !important;
  min-width: 150px !important;
  padding: 12px 24px !important;
  height: 48px !important;
  border: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

.event-detail-buttons .buy-tickets-btn:hover,
.event-detail-buttons .more-info-btn:hover {
  background: url('/events/images/goldsheet6.jpg') center/cover no-repeat !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
  filter: brightness(1.1);
}

.event-detail-flyer {
  float: right;
  margin: 0 0 15px 20px;
  max-width: 300px;
}

.event-detail-flyer img,
.event-detail-flyer video {
  max-width: 300px;
  max-height: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
  .event-detail-logo {
    float: none;
    margin: 0 auto 15px auto;
    display: block;
    text-align: center;
  }

  .event-detail-logo img,
  .event-detail-logo video {
    margin: 0 auto;
  }

  .event-detail-flyer {
    float: none;
    margin: 0 auto 15px auto;
    display: block;
    text-align: center;
  }

  .event-detail-flyer img,
  .event-detail-flyer video {
    max-width: 100%;
    margin: 0 auto;
  }

  .event-detail-buttons {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .event-detail-buttons .buy-tickets-btn,
  .event-detail-buttons .more-info-btn {
    width: 140px;
    font-size: 14px;
  }
}

/* Full Width HTML Description */
.description-html-content {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}
.description-html-content img {
  max-width: 100%;
  height: auto;
}
.description-html-content table {
  max-width: 100% !important;
  width: 100% !important;
  table-layout: fixed;
}
.description-html-content td,
.description-html-content th {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.description-html-content p {
  margin: 0 0 0.5em 0;
}
.description-html-content p:empty {
  display: none;
}
.description-html-content p + p {
  margin-top: 0;
}

/* Card styles are in /css/event-cards.css — no overrides here */

/* Other Events Grid */
.other-events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.other-event-card {
  flex: 0 0 calc(16.66% - 10px);
  min-width: 140px;
  max-width: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.other-event-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.other-event-card img,
.other-event-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.other-event-info {
  padding: 8px;
  text-align: center;
}

.other-event-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.other-event-venue {
  font-size: 10px;
  color: #666;
}

@media (max-width: 900px) {
  .other-event-card {
    flex: 0 0 calc(25% - 10px);
    max-width: 200px !important;
  }
}

@media (max-width: 600px) {
  .other-event-card {
    flex: 0 0 calc(50% - 6px);
    max-width: 200px !important;
  }
}

@media (max-width: 400px) {
  .other-event-card {
    flex: 0 0 calc(50% - 6px);
    max-width: 200px !important;
  }
}
