/* Ticketek-Inspired Modern Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --secondary: #00b894;
  --bg-page: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #6a6a6a;
  --border-light: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-page);
}

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-user {
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-hint {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  display: block;
}

.main-nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #0066cc 0%, #00b894 100%);
  color: white;
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-banner h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-banner p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-search {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 1rem;
  color: var(--text-dark);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  background: var(--primary-dark);
  color: white;
  border: none;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.search-btn:hover {
  background: #003d7a;
}

/* Content Sections */
.content-section {
  padding: 2.5rem 1.25rem;
}

.alt-bg {
  background: white;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.listing-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.listing-image {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio (3/4 = 0.75) */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.listing-image img,
.listing-image .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  font-size: 4rem;
  opacity: 0.9;
}

.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.open {
  background: var(--secondary);
  color: white;
}

.status-badge.closed {
  background: #ff6b6b;
  color: white;
}

.listing-content {
  padding: 1.25rem;
}

.listing-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cuisine-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-page);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}

.event-date {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 2.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* Auth Pages */
.auth-page {
  max-width: 480px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.auth-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-section {
  display: none;
}

.auth-section.active {
  display: block;
}

.auth-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e0e0e0;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #ff6b6b;
  color: white;
}

.btn-danger:hover {
  background: #ff5252;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.error-message {
  margin-top: 0.75rem;
  color: #ff6b6b;
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.hidden {
  display: none;
}

.form-container {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.form-container h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.items-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.item-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.item-card:hover {
  box-shadow: var(--shadow-lg);
}

.item-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.item-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.item-card p strong {
  color: var(--text-dark);
}

.item-card .actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status.open {
  background: #d1f4e0;
  color: #00b894;
}

.status.closed {
  background: #ffe0e0;
  color: #ff6b6b;
}

/* Responsive */
/* Tablet and up */
@media (min-width: 768px) {
  .header-container {
    padding: 1rem 2rem;
    flex-direction: row;
  }

  .main-nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 2rem;
  }

  .hero-banner {
    padding: 4rem 2rem;
  }

  .hero-banner h1 {
    font-size: 2.75rem;
  }

  .hero-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .hero-search {
    flex-direction: row;
  }

  .search-btn {
    width: auto;
    padding: 1rem 2rem;
  }

  .content-section {
    padding: 3.5rem 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1.05rem;
  }

  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .dashboard {
    padding: 2rem;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .items-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--bg-page);
  color: var(--text-dark);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-header h2 {
  font-size: 1.75rem;
  margin: 0;
  flex: 1;
}

.modal-cuisine {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.modal-hours {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.modal-description {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-page);
  border-radius: 8px;
}

.modal-menu-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

#modal-menu-items {
  margin-top: 1rem;
}
