/* Global.css */
/* Modern Reset & Base Styles */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --background: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --primary-color-alpha: rgba(37, 99, 235, 0.2);
}

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

/* Update base font styles */
html {
  font-family: Avenir, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* Main Container Styles */
.max-w-4xl {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Event Card Grid */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Enhanced Event Card Styles */
.event-card {
  background: var(--card-background);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

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

/* Media Container */
.media-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #f1f5f9;
  overflow: hidden;
  margin-bottom: 1rem;
}

.media-container img,
.media-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-container img:hover {
  transform: scale(1.05);
}

/* Media Wrapper for EventDetails page */
.media-wrapper {
  width: 100%;
  height: 315px;
  display: flex;
  margin: 0;
  padding: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  position: relative;
  /* Add mask for iframe corners */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.media-wrapper img,
.media-wrapper iframe {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

/* Add video container styles */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  transform: translateZ(0); /* Force GPU acceleration */
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
  transform: translateZ(0);
}

/* Ensure both image and iframe maintain rounded corners */
.media-wrapper img,
.media-wrapper iframe,
.video-container,
.event-image {
  border-radius: 0.5rem;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix for Safari */
  transform: translateZ(0); /* Force GPU acceleration */
}

/* Event Details Section */
.event-details {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.event-location {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Enhanced Button Styles */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.learn-more-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.learn-more-btn:focus {
  outline: none;
  box-shadow: 0 0 10px var(--primary-hover);
}

.learn-more-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

/* Loading State */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .event-details {
    padding: 1rem;
  }

  .event-title {
    font-size: 1.125rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .event-card,
  .media-container img,
  .learn-more-btn {
    transition: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  :root {
    --primary-color: #0040ff;
    --primary-hover: #0030cc;
    --text-secondary: #505050;
    --border-color: #ffff;
  }
}

/* Dark Mode Support */
:root[data-theme="dark"] {
  --background: #0f172a;
  --card-background: #1e293b;
  --text-primary: #f1f5f9; /* White text in dark mode */
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --link-color: #60a5fa; /* Lighter blue for links */
}

/* Light Mode Support */
:root[data-theme="light"] {
  --background: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b; /* Black text in light mode */
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --link-color: #2563eb; /* Blue for links */
}

/* Event title link styles */
.text-xl {
  color: var(--text-primary);
  text-decoration: none !important;
  transition: color 0.2s ease;
}

/* Dark mode specific link styles */
[data-theme="dark"] .text-xl {
  color: var(--text-primary); /* Ensure text is white */
  text-decoration: none !important;
}

[data-theme="dark"] .text-xl:hover {
  color: var(--primary-hover);
  text-decoration: none !important;
}

/* Additional Link Styles */
.text-xl, 
.text-xl:link, 
.text-xl:visited, 
.text-xl:hover, 
.text-xl:active {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  color: inherit;
}

/* Remove purple visited state */
*:visited {
  color: inherit;
}

/* Print Styles */
@media print {
  .event-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }

  .learn-more-btn {
    display: none;
  }
}

/* Mobile-Optimized and World-Class Search Bar Styles */
.search-bar-container {
  display: flex;
  justify-content: center;
  padding: 0 1rem; /* Horizontal padding */
  margin-bottom: 2rem;
}

.search-bar {
  width: 100%; /* Full width */
  max-width: 600px; /* Maximum width for better readability */
  min-width: 250px; /* Prevents shrinking too much on small screens */
  display: flex;
  align-items: center;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem; /* Soft rounded corners */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0.5rem; /* Padding to avoid tightness on mobile screens */
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
  height: auto; /* Height adjusts automatically */
}

.search-bar:hover {
  box-shadow: var(--shadow-lg); /* Hover effect for depth */
  transform: scale(1.02); /* Slight scale-up effect */
}

.search-input {
  flex: 1;
  padding: 1rem 1.25rem; /* Adjusted padding for better mobile touch targets */
  font-size: 1rem;
  color: var(--text-primary);
  border: none;
  outline: none;
  background-color: transparent;
  font-weight: 400;
  transition: all 0.3s ease;
  border-radius: 1rem; /* Round edges for a more modern feel */
}

.search-input::placeholder {
  color: var(--text-secondary);
  font-style: italic; /* Italic placeholder for elegance */
}

.search-input:focus {
  background-color: var(--input-focus-bg);
  color: var(--text-highlight);
  box-shadow: 0 0 5px var(--highlight-color); /* Focus ring with highlight */
}

.search-button {
  visibility: hidden;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  background: none;
}

.search-button:hover {
  visibility: hidden;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  background: none;
}

.search-button:focus {
  outline: none;
  box-shadow: 0 0 10px var(--highlight-color); /* Focus highlight effect */
}

.search-button:active {
  transform: translateY(1px); /* Press effect */
}

/* Mobile-first Responsive Adjustments */
@media (max-width: 768px) {
  .search-bar {
    padding: 0.5rem; /* Reduced padding for mobile */
    max-width: 100%; /* Ensure it spans full width on mobile */
    height: auto; /* Height adjusts naturally */
    flex-direction: row; /* Keep items aligned horizontally */
  }

  .search-input {
    font-size: 0.95rem; /* Smaller font for mobile optimization */
    padding: 0.75rem 1rem; /* Reduced padding for mobile */
  }

  .search-button {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin-left: 0.5rem; /* Tighten button spacing on small screens */
  }
}

@media (max-width: 480px) {
  .search-bar {
    flex-direction: row; /* Horizontal alignment on smaller screens */
    height: auto; /* Height adjusts naturally */
    padding: 0.375rem; /* Further reduced padding for small mobile */
  }

  .search-input {
    padding: 0.625rem 0.875rem; /* Reduced padding for small mobile */
    width: 100%; /* Ensure input takes full width on small screens */
    font-size: 0.9rem; /* Smaller font for small mobile */
  }
}


/* Enhanced Button Styles */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600; /* Increased font weight for a bolder look */
  transition: all 0.3s ease-in-out; /* Smoother transition */
  width: 100%;
  text-align: center;
  text-decoration: none;
  border: none; /* Remove any default border */
  cursor: pointer; /* Make it clear it's clickable */
  box-shadow: var(--shadow-sm); /* Subtle shadow for depth */
}

.learn-more-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px); /* Slightly stronger hover effect */
  box-shadow: var(--shadow-md); /* Add depth on hover */
}

.learn-more-btn:focus {
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 10px var(--primary-hover); /* Custom focus outline */
}

.learn-more-btn:active {
  transform: translateY(1px); /* Small press effect */
  box-shadow: var(--shadow-sm); /* Return to default shadow on active */
}

/* Mobile Optimized Button */
@media (max-width: 768px) {
  .learn-more-btn {
    padding: 0.75rem 1.25rem; /* Adjust padding on smaller screens */
    font-size: 1rem; /* Slightly smaller text for better readability */
  }
}

@media (max-width: 480px) {
  .learn-more-btn {
    padding: 0.5rem 1.25rem; /* Reduce padding on very small screens */
    font-size: 0.875rem; /* Adjust font size for very small screens */
  }
}

/* global.css */
.learn-more-button {
  background-color: #2563eb;  /* Blue background */
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.learn-more-button:hover {
  background-color: #1d4ed8;  /* Darker blue on hover */
}

/* Mobile App Download Bar */
.mobile-app-bar {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw; /* Ensure full viewport width */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 50;
  backdrop-filter: blur(8px);
  min-height: 60px; /* Ensure minimum height for consistent background */
  box-sizing: border-box; /* Include padding in width calculation */
}

.mobile-app-bar-content {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.app-store-link {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.app-store-link:hover {
  transform: translateY(-2px);
}

.app-store-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Show only on tablet and mobile */
@media (max-width: 1024px) {
  .mobile-app-bar {
    display: block;
    height: auto; /* Allow height to adjust naturally */
    min-height: 60px; /* Ensure minimum height */
  }
  
  /* Add padding to main content to prevent overlap with the bar */
  main {
    padding-bottom: calc(60px + 1.5rem); /* Increased padding to account for min-height */
  }
  
  /* Ensure body doesn't have white background showing through */
  body {
    background-color: var(--background);
  }
}

/* Adjust for smaller mobile screens */
@media (max-width: 480px) {
  .mobile-app-bar {
    min-height: 56px; /* Slightly smaller for small mobile */
    padding: 0.5rem 0.75rem; /* Reduced padding */
  }
  
  .app-store-image {
    height: 32px;
  }
  
  .mobile-app-bar-content {
    gap: 0.5rem;
  }
  
  /* Ensure proper padding for small mobile */
  main {
    padding-bottom: calc(56px + 1rem);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .app-store-link {
    transition: none;
  }
}

/* Theme variables */
:root[data-theme="light"] {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --background: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
}

:root[data-theme="dark"] {
  --background: #0f172a;
  --card-background: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --link-color: #60a5fa; /* Lighter blue for links */
}

/* Navigation Styles */
.main-nav {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* Add horizontal padding to prevent edge cutoff */
}

/* Update navigation styles to use Varela Round */
.nav-logo, 
.nav-links {
    font-family: 'Varela Round', sans-serif;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logo:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: 'Varela Round', sans-serif;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover, 
.nav-logo:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    position: relative;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 10px;
}

.hamburger-line:nth-child(2) {
    top: 20px;
}

.hamburger-line.active:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.hamburger-line.active:nth-child(2) {
    transform: rotate(-45deg);
    top: 15px;
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    background-color: var(--primary-color-alpha);
    color: var(--primary-color);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .nav-content {
        position: relative;
    }
}

@media (max-width: 640px) {
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        font-size: 1rem;
    }
}

/* Additional mobile scaling for better balance */
@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.875rem;
    }
    
    .hamburger-menu {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 1.5px;
    }
    
    .hamburger-line:nth-child(1) {
        top: 9px;
    }

    .hamburger-line:nth-child(2) {
        top: 18px;
    }
    
    .hamburger-line.active:nth-child(1) {
        transform: rotate(45deg);
        top: 13px;
    }

    .hamburger-line.active:nth-child(2) {
        transform: rotate(-45deg);
        top: 13px;
    }
}

/* Post Page Styles */
.auth-container {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;  /* Slightly more padding */
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-section {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.full-width {
    grid-column: 1 / -1;
}

.section-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea,
.search-input,
.event-title,
.event-details,
.section-title,
.post-header,
.auth-subtitle,
button,
input,
textarea,
select {
    font-family: Avenir, system-ui, sans-serif;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color-alpha);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.error-alert,
.success-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.error-alert {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #B91C1C;
}

.success-alert {
    background: #DCFCE7;
    border: 1px solid #22C55E;
    color: #15803D;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .price-inputs {
        grid-template-columns: 1fr;
    }

    .post-container {
        padding: 1rem;
    }
}

/* Compact Post Page Styles */
.post-container.compact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 64px); /* Changed from fixed height to min-height */
    display: flex;
    flex-direction: column;
}

.post-header {
    text-align: center;
    margin-bottom: 1rem; /* Reduced margin */
}

.post-header h1 {
    font-size: 1.25rem; /* Slightly smaller */
    margin-bottom: 0.25rem;
}

.post-subtitle {
    font-size: 0.875rem;
}

.form-grid.compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    gap: 0.75rem; /* Reduced gap */
    margin-bottom: 0.75rem;
}

.form-section {
    padding: 0.75rem; /* Reduced padding */
}

.section-title {
    font-size: 0.875rem; /* Smaller font */
    margin-bottom: 0.5rem; /* Reduced margin */
    padding-bottom: 0.25rem;
}

.input-group {
    margin-bottom: 0.5rem; /* Reduced margin */
}

.input-group label {
    font-size: 0.75rem; /* Smaller font */
    margin-bottom: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.375rem 0.5rem; /* Reduced padding */
    font-size: 0.875rem;
}

.form-textarea {
    min-height: 60px; /* Shorter textarea */
}

.auth-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Adjust spacing for better fit */
.price-inputs {
    gap: 0.5rem;
}

.error-alert,
.success-alert {
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.submit-btn {
    padding: 0.75rem;
    max-width: 200px; /* Limit button width */
    margin: 0 auto; /* Center button */
}

.form-actions {
    margin-top: 1rem; /* Reduced margin */
    position: sticky; /* Keep button visible */
    bottom: 1rem;
    z-index: 10;
}

/* Make scrollbar less obtrusive */
.post-container.compact::-webkit-scrollbar {
    width: 6px;
}

.post-container.compact::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.post-container.compact::-webkit-scrollbar-track {
    background-color: var(--background);
}

/* Responsive adjustments */
@media (max-height: 800px) {
    .form-section {
        padding: 0.75rem;
    }
    
    .input-group {
        margin-bottom: 0.75rem;
    }
    
    .form-textarea {
        min-height: 60px;
    }
}

/* Update Form Grid Layout */
.form-grid.compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-section.full-width {
    grid-column: 1 / -1; /* Span all columns */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .form-grid.compact {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
    }
}

@media (max-width: 768px) {
    .form-grid.compact {
        grid-template-columns: 1fr; /* One column on mobile */
    }
}

/* Update Auth Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;  /* Increased gap between form elements */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;  /* Space between label and input if needed */
}

/* Media display styles */
.media-wrapper {
    width: 100%;
    height: 315px; /* Match YouTube iframe height */
    margin: 0 0 1rem 0; /* Reset top margin, keep bottom margin */
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--card-background);
    position: relative;
    /* Add mask for iframe corners */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.media-wrapper iframe,
.media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    border: none;
}

/* Add video container styles */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  transform: translateZ(0); /* Force GPU acceleration */
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
  transform: translateZ(0);
}

/* Ensure both image and iframe maintain rounded corners */
.media-wrapper img,
.media-wrapper iframe,
.video-container,
.event-image {
  border-radius: 0.5rem;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix for Safari */
  transform: translateZ(0); /* Force GPU acceleration */
}

/* Update learn more button to match media width */
.learn-more-btn,
.learn-more-button {
    width: 100%;
    max-width: 1000px;
    margin: 2px auto 0 auto; /* Reduced top margin */
    display: block;
}

/* Add Post.svelte styles */
.upload-preview {
    width: 100%;
    height: 315px; /* Match YouTube iframe height */
    object-fit: cover;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

/* Style calendar icon */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(50%); /* Makes the icon grey */
    cursor: pointer; /* Shows pointer cursor on hover */
    opacity: 0.6; /* Slightly transparent */
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8; /* More visible on hover */
}

/* For Firefox */
input[type="datetime-local"] {
    color-scheme: light; /* Ensures consistent appearance */
}

/* Upload Status Styles */
.upload-status {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Media and Button Container */
.media-button-container {
  width: 100%;
  max-width: 1000px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
}

.media-wrapper {
  width: 100%;
  height: 315px;
  display: flex;
  margin: 0;
  padding: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}

.media-wrapper iframe,
.media-wrapper img {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

.learn-more-btn {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  border: none;
}

/* Updated Media and Video Container Styles */
.media-wrapper {
    width: 100%;
    height: 315px;
    margin: 0;
    padding: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    background: var(--card-background);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    background: var(--card-background);
}

/* Remove the after pseudo-element as it may cause the grey corners */
.video-container::after {
    display: none;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Ensure consistent styling for all media elements */
.media-wrapper iframe,
.media-wrapper img,
.video-container,
.event-image {
    border-radius: 0.5rem;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    background: var(--card-background);
}

/* Event card media container specific styles */
.bg-white .media-wrapper {
    margin-bottom: 1rem;
    background: var(--card-background);
}

/* Media and Button Container Styles */
.media-button-container {
  width: 100%;
  max-width: 1000px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* EventDetails specific styles */
.media-button-container .media-wrapper {
  margin: 0;
  border-radius: 0.5rem 0.5rem 0 0; /* Only round top corners */
}

.media-button-container .media-wrapper iframe,
.media-button-container .media-wrapper img,
.media-button-container .video-container {
  border-radius: 0.5rem 0.5rem 0 0; /* Match parent's top corners only */
}

.media-button-container .learn-more-btn {
  margin: 0;
  border-radius: 0; /* Sharp corners for the button */
  position: relative;
  top: -1px;
}

.media-button-container .media-wrapper {
  margin: 0; /* Remove margin for media wrapper inside container */
  border-radius: 0.5rem 0.5rem 0 0; /* Round only top corners */
}

.media-button-container .learn-more-btn {
  margin: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  position: relative; /* Change to relative */
  top: -1px; /* Slight overlap to prevent gap */
}

/* =========================================
   Contact Form Component Styles
   =========================================
   These styles create a professional contact form with:
   - Centered layout with max-width container
   - Smooth animations and transitions
   - Responsive design for all screen sizes
   - Accessible form elements
   - Clear visual feedback for user interactions
   ========================================= */

/* Container Layout */
.contact-container {
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

/* Form Card Design */
.contact-form {
  width: 100%;
  max-width: 32rem;
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Form Header Styling */
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Form Group Layout */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Required Field Indicator */
.required {
  color: #ef4444;
  margin-left: 0.25rem;
}

/* Form Input Styling */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

.form-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Submit Button Styling */
.submit-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

.success {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #15803d;
}

/* Loading Spinner */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 640px) {
  .contact-container {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .form-input,
  .submit-button,
  .spinner {
    transition: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: more) {
  .required {
    color: #ff0000;
  }
  
  .alert {
    border-width: 2px;
  }
}

/* =========================================
   App Promotion Page Styles
   =========================================
   These styles create a high-quality app landing page with:
   - Centered layout with max-width container
   - Smooth animations and transitions
   - Responsive design for all screen sizes
   - Clear visual feedback for user interactions
   ========================================= */

/* Container Layout */
.app-promotion-container {
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

/* Content Styling */
.app-promotion-content {
  width: 100%;
  max-width: 40rem;
  text-align: center;
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  font-family: 'Varela Round', sans-serif;
}

/* Title Styling */
.app-promotion-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary); /* Use primary text color (white in dark mode, black in light mode) */
  margin-bottom: 1rem;
}

/* Description Styling */
.app-promotion-description {
  font-size: 1.125rem;
  color: var(--text-primary); /* Use primary text color (white in dark mode, black in light mode) */
  margin-bottom: 2rem;
}

/* App Promotion Copy */
.app-promotion-copy {
  text-align: left;
  margin-top: 2rem;
  color: var(--text-primary); /* Use primary text color */
}

.app-promotion-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.app-store-link:hover {
  transform: translateY(-2px);
}

.app-store-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.app-promotion-copy {
  text-align: left;
  margin-top: 2rem;
  color: var(--text-primary); /* Use primary text color */
}

.app-promotion-copy p,
.app-promotion-copy ul {
  margin-bottom: 1rem;
}

.app-promotion-copy ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.app-promotion-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.app-promotion-image {
  width: 100%;
  max-width: 200px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.app-promotion-image:hover {
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .app-promotion-content {
    padding: 1.5rem;
  }

  .app-promotion-title {
    font-size: 2rem;
  }

  .app-promotion-description {
    font-size: 1rem;
  }

  .app-store-image {
    height: 50px;
  }

  .app-promotion-image {
    max-width: 150px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .app-store-link,
  .app-promotion-image {
    transition: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: more) {
  .app-promotion-title {
    color: #0000ff;
  }

  .app-promotion-description {
    color: #505050;
  }
}

/* Dark Mode Support */
:root[data-theme="dark"] {
  --background: #0f172a;
  --card-background: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --link-color: #60a5fa; /* Lighter blue for links */
}

:root[data-theme="light"] {
  --background: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --link-color: #2563eb; /* Blue for links */
}

/* =========================================
   App Promotion Page Styles
   =========================================
   These styles create a high-quality app landing page with:
   - Centered layout with max-width container
   - Smooth animations and transitions
   - Responsive design for all screen sizes
   - Clear visual feedback for user interactions
   ========================================= */

/* Container Layout */
.app-promotion-container {
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

/* Content Styling */
.app-promotion-content {
  width: 100%;
  max-width: 40rem;
  text-align: center;
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Title Styling */
.app-promotion-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Description Styling */
.app-promotion-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Button Container */
.app-promotion-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* App Store Link Styling */
.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.app-store-link:hover {
  transform: translateY(-2px);
}

.app-store-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .app-promotion-content {
    padding: 1.5rem;
  }

  .app-promotion-title {
    font-size: 2rem;
  }

  .app-promotion-description {
    font-size: 1rem;
  }

  .app-store-image {
    height: 50px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .app-store-link {
    transition: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: more) {
  .app-promotion-title {
    color: #0000ff;
  }

  .app-promotion-description {
    color: #505050;
  }
}

/* App Promotion Hero Styles */
.app-promotion-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
  background: var(--card-background);
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: 'Varela Round', sans-serif;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  padding: 0 1rem;
}

.feature-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonial Section */
.testimonial-section {
  background: var(--card-background);
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 2rem;
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 700;
}

.testimonial-text {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.benefits-list {
  text-align: left;
  list-style: none;
  padding: 0;
}

.benefits-list li {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

/* App Showcase */
.app-showcase {
  margin: 4rem 0;
}

.app-screenshots {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.app-screenshot {
  width: 250px;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.app-screenshot:hover {
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  padding: 4rem 2rem;
  border-radius: 2rem;
  margin-top: 4rem;
  color: white;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }

  .app-screenshot {
    width: 200px;
  }
}

/* Access Denied Page Styles */
.warning-container {
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: var(--background);
}

.warning-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Varela Round', sans-serif;
}

.warning-container p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    font-family: Avenir, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    font-family: 'Varela Round', sans-serif;
}

.contact-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-button:active {
    transform: translateY(0);
}

/* Update Form Section Title Styles */
.form-grid .section-title {
    font-size: 1rem; /* Reduced from 1.25rem */
    color: var(--text-primary);
    margin-bottom: 1rem; /* Slightly reduced margin */
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-family: 'Varela Round', sans-serif;
    font-weight: 600;
}

.form-grid.compact .section-title {
    font-size: 0.875rem; /* Even smaller for compact view */
    margin-bottom: 0.75rem;
}