:root {
  --primary-color: #ff4786;
  --background-color: #141414;
  --text-color: #ffffff;
  --secondary-color: #564d4d;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.919) 10%,
    rgba(20, 20, 20, 0.564)
  );
  padding: 1rem 4%;
  transition: background-color 0.3s;
  backdrop-filter: blur(1rem);
}

.movie-detail {
  padding: 6rem 2rem;
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.movie-poster {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.movie-poster img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.movie-description {
  flex: 1;
}

.movie-description h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.movie-description a {
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.movie-description button {
  width: fit-content;
  padding: 0.5rem 3rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.movie-synopsis {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.showtimes {
  margin: 25px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.showtimes h4 {
  margin-bottom: 15px;
  color: #333;
}

.showtime-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.showtime-item {
  background: white;
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.showtime-date {
  font-weight: bold;
  color: #7134c7;
  margin-bottom: 5px;
}

.showtime-time {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.showtime-location {
  color: #666;
  font-size: 0.9em;
}

.no-showtimes {
  color: #666;
  font-style: italic;
  margin: 20px 0;
}

.synopsis-link {
  display: block;
  margin: 10px 0;
  color: #ff4786;
  text-decoration: none;
  font-weight: bold;
}

#addToCartBtn {
  padding: 10px 50px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  color: white;
  background-color: #ff4786;
}

#addToCartBtn.in-cart {
  background-color: gray;
}

.showtimes-container {
  margin: 25px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.showtimes-header {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: bold;
}

.showtime-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 15px;
  margin-bottom: 10px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.showtime-date {
  font-weight: bold;
  min-width: 120px;
  color: #333;
}

.showtime-time {
  background: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.showtime-location {
  flex-grow: 1;
  text-align: right;
  color: #666;
  font-style: italic;
}

.no-showtimes {
  color: #dc3545;
  font-style: italic;
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 6px;
}

/* Debug styles */
.debug-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

#showtimeSelect {
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: white;
  width: 100%;
  font-size: 16px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#showtimeSelect option {
  padding: 8px 12px;
}

#showtimeSelect:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.package-inclusions {
  list-style-type: none;
  padding: 0;
  margin: 15px 0;
}

.package-inclusions li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.package-inclusions li:before {
  content: "✓";
  color: #7134c7;
  margin-right: 10px;
}

.package-price {
  font-size: 1.5rem;
  color: #7134c7;
  font-weight: bold;
  margin: 10px 0;
}

.ticket-selection {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.ticket-selection label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: #333;
}

.ticket-selection select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  background-color: white;
}

.price-display {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff4786;
}

.movie-meta {
  margin: 10px 0;
  color: #666;
}

.movie-meta span {
  margin-right: 15px;
}

.movie-poster img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #ff0a16;
}

footer {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 2rem 4%;
  text-align: center;
  border-top: 1px solid var(--secondary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

footer p {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

@media (min-width: 768px) {
  .movie-info {
    flex-direction: row;
  }

  .movie-poster {
    flex: 0 0 300px;
    margin: 0;
  }

  /* .snack-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  } */
}

@media (max-width: 767px) {
  .movie-description h1 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-right input {
    display: none;
  }
}

.cart-alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  min-width: 250px;
  text-align: center;
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.alert-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
