/* Base styles and reset */
:root {
  /* Color palette - professional, trustworthy */
  --primary: #4169e1;
  --primary-dark: #2a4cad;
  --secondary: #f5a623;
  --secondary-dark: #d68c00;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #888888;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --border: #e0e0e0;
  --success: #5cb85c;
  --error: #d9534f;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Container */
  --container-width: 100%;
  --container-max-width: 600px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Update link styles to be blue and underlined by default */
a {
  color: var(--primary);
  text-decoration: underline;
}

/* Specific overrides for links that should NOT be underlined */
.btn, 
.footer-links a,
.logo a {
  text-decoration: none;
}

/* Keep hover effect for all links */
a:hover {
  text-decoration: underline; /* Keep underline on hover for consistency */
}

/* Prevent hover underline on buttons */
.btn:hover {
  text-decoration: none;
}

/* Footer links should not be underlined */
.footer-links a:hover {
  text-decoration: underline; /* But allow underline on hover */
}

/* Add styles for the lighter CTA section */
.cta-lighter {
  background-color: var(--background-alt);
  padding: var(--spacing-xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-lighter p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.cta-lighter a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-xl);
}

h3 {
  font-size: 1.25rem;
  margin-top: var(--spacing-lg);
}

p {
  margin-bottom: var(--spacing-md);
}

ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Layout */
.container {
  width: var(--container-width);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

/* Header */
.header {
  background-color: var(--background);
  padding: var(--spacing-md) 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 100%;
  height: auto;
  margin-bottom: var(--spacing-md);
}

/* Hero Section */
.hero {
  background-color: var(--background-alt);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.event-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background);
  padding: var(--spacing-md);
  padding-top: calc(var(--spacing-md) + 0.5rem);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 0 0.5rem;
}

.mini-headline {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #4169e1;
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 0.25rem 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-detail i {
  margin-bottom: var(--spacing-xs);
  color: var(--primary);
}

/* Testimonials */
.testimonials {
  background-color: var(--background);
}

#testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonial {
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.testimonial-company {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Ticket Section */
.tickets {
  background-color: var(--background);
}

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

.tickets-availability {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  background-color: rgba(65, 105, 225, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
  display: inline-block;
}

/* Ticket Options Grid Layout */
.ticket-options-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ticket-option {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ticket-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-option.selected {
  border-color: #4a86e8;
  background-color: #f5f9ff;
}

.ticket-option.unavailable {
  opacity: 0.7;
  background-color: #f8f8f8;
}

.ticket-header {
  padding: 20px 25px;
  background-color: #f5f7fa;
  border-bottom: 1px solid #e0e0e0;
}

.ticket-option.selected .ticket-header {
  background-color: #e8f0fe;
  border-bottom-color: #4a86e8;
}

.ticket-title {
  font-size: 1.25rem;
  margin: 0 0 5px;
  color: #333;
  font-weight: 600;
}

.ticket-price {
  font-size: 2rem;
  font-weight: 700;
  color: #4169e1;
  text-shadow: 0px 1px 1px rgba(0,0,0,0.1);
}

.ticket-option.selected .ticket-price {
  color: #2962ff;
}

.ticket-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ticket-description {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #666;
  flex-grow: 1;
}

.ticket-dates {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.ticket-dates i {
  margin-right: 5px;
  color: #999;
}

.inventory-badge {
  display: inline-block;
  background-color: #ff9900;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.inventory-badge.limited {
  background-color: #f44336;
}

.inventory-badge.plenty {
  background-color: #4caf50;
}

.ticket-option .btn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ticket-option .btn-outline {
  background: transparent;
  border: 1px solid #ccc;
  color: #777;
}

.ticket-purchase-form {
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Other Purchase Options section styling */
.other-options {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border);
}

.other-options h3 {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: var(--spacing-sm);
}

.other-options p {
  text-align: center;
  font-size: 0.9em;
  color: var(--text-light);
}

.selected-ticket-info {
  background-color: #f0f7ff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border-left: 4px solid #4169e1;
}

.selected-ticket-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

.selected-ticket-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4169e1;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #777;
  font-style: italic;
}

/* Agenda */
.agenda {
  background-color: var(--background);
}

.day {
  margin-bottom: var(--spacing-xl);
}

.day:last-child {
  margin-bottom: 0;
}

.day-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--border);
}

.agenda-item {
  margin-bottom: var(--spacing-md);
}

.agenda-item-title {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.agenda-item-description {
  color: var(--text-light);
}

/* FAQs */
.faqs {
  background-color: var(--background);
}

.faq-item {
  margin-bottom: var(--spacing-lg);
}

.faq-question {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.faq-answer {
  color: var(--text-light);
}

/* Partners/Logos Section */
.partners {
  background-color: var(--background-alt);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.partner-logo {
  width: 120px;
  height: 60px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* CTA Section */
.cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta h2 {
  color: white;
  margin-top: 0;
}

.cta p {
  margin-bottom: var(--spacing-lg);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.05rem;
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.05rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
  border: 1px solid #ddd;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
}

.quantity-input {
  width: 70px;
  height: 45px;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  background-color: var(--primary);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Back button styling */
#back-to-tickets-btn {
  margin-top: 15px;
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: none;
}

#back-to-tickets-btn:hover {
  background-color: var(--background-alt);
  color: var(--text);
}

/* Footer */
.footer {
  background-color: var(--background-alt);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.footer-links {
  margin-top: var(--spacing-md);
}

.footer-links a {
  margin: 0 var(--spacing-sm);
  color: var(--text-muted);
}

/* Success Page */
.success-container {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.success-icon {
  color: var(--success);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.order-summary {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background-color: var(--background-alt);
  border-radius: 4px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
  border-bottom: none;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.social-share {
  margin-top: var(--spacing-xl);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-alt);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  transition: background-color 0.2s;
}

.social-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 4px;
}

.countdown-label {
  font-size: 0.8rem;
  margin-top: var(--spacing-xs);
  color: var(--text-muted);
}

/* Bottom countdown in CTA section - custom styling */
.cta .countdown {
  margin: var(--spacing-xl) 0;
}

.cta .countdown-item {
  transform: scale(1.15);
  margin: 0 var(--spacing-xs);
}

.cta .countdown-value {
  background-color: var(--secondary);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta .countdown-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--spacing-sm);
}

/* Error messages */
.error-message {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background-color: #ffeaea;
  border-left: 4px solid var(--error);
  color: var(--error);
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

/* Mobile optimizations */
@media (min-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .hero {
    padding: var(--spacing-xxl) 0;
  }
  
  .event-details {
    flex-direction: row;
    justify-content: center;
  }
  
  .action-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 1.1rem;
  }
  
  .countdown-value {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .ticket-title {
    font-size: 1.3rem;
  }
  
  .ticket-price {
    font-size: 1.9rem;
  }
}

/* Email styles for system generated emails */
.email-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
}

.email-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.email-logo {
  width: 120px;
  height: auto;
  margin: 0 auto;
  padding-bottom: 15px;
}

.email-body {
  padding: 20px 0;
}

.email-footer {
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.9rem;
  color: #666666;
}

.ticket-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.ticket-card-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.ticket-card-body {
  margin-bottom: 15px;
}

.ticket-qrcode {
  text-align: center;
  margin: 15px 0;
}

.ticket-meta {
  font-size: 0.9rem;
  color: #666666;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

.event-ended-message {
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  border-left: 3px solid #f44336;
  text-align: center;
  margin: 20px 0;
}

.event-ended-message h3 {
  color: #f44336;
  margin-bottom: 15px;
}

.event-ended-message p {
  margin-bottom: 10px;
}

.event-completed {
  margin-top: 15px;
  font-style: italic;
}

/* Sprite Animation Styles */
.sprite-animation-section {
  margin: 2rem 0;
}

/* Container: mobile-first, no breakpoints */
.sprite-container {
  position: relative;
  width: 100%;               /* fluid width */
  max-width: 600px;          /* maximum width for larger screens */
  aspect-ratio: 600 / 337;   /* preserve sprite frame ratio */
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;    /* JS will refine the scaling */
  overflow: hidden;          /* ensures poster doesn't overflow */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity;
  transition: transform 0.3s ease-out;
}

.sprite-container:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Poster covers the container while loading */
.sprite-poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* scale to fill container */
  transition: opacity 0.4s ease; /* fade-out transition */
}

/* When we add .hidden, it fades poster to 0 opacity */
.sprite-poster.hidden {
  opacity: 0;
  pointer-events: none; /* ignore clicks once hidden */
}

/* Handle reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .sprite-container {
    transition: none;
  }
  
  .sprite-container:hover {
    transform: none;
  }
}

/* Blue Alert Style for Sold Out message */
.alert-blue {
  background-color: #e0f2ff; 
  color: #004a66; 
  border-left: 4px solid #0077aa; 
  padding: 10px; 
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Sold Out styling */
.sold-out {
  font-weight: bold;
  color: #004a66;
  background-color: #e0f2ff;
  padding: 5px 15px;
  border-radius: 4px;
  display: inline-block;
}