/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.toast {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #8b5cf6;
  animation: slideIn 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 2rem;
  color: #8b5cf6;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav button {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.3s;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.desktop-nav button:hover {
  color: #8b5cf6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #0f172a;
  border-left: 1px solid rgba(139, 92, 246, 0.2);
  transition: right 0.3s ease;
  z-index: 2000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 2rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-header button {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 1.5rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav button {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  text-align: left;
  padding: 0.5rem 0;
  transition: color 0.3s;
  font-size: 1rem;
}

.mobile-nav button:hover {
  color: #8b5cf6;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #8b5cf6;
}

.hero p {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-container {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
}

.search-input-wrapper input::placeholder {
  color: #9ca3af;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0, 0 2px rgba(139, 92, 246, 0.2);
}

.cta-btn {
  background: #8b5cf6;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background: #7c3aed;
}

/* Filters Section */
.filters-section {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.1);
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.filters-left {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filters-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: white;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  min-width: 200px;
  cursor: pointer;
}

.select-wrapper select option {
  background: #1e293b;
  color: white;
}

.select-wrapper i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8b5cf6;
  pointer-events: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: white;
  font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.clear-filters-btn {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.clear-filters-btn:hover {
  background: rgba(139, 92, 246, 0.1);
}

/* Games Section */
.games-section {
  padding: 4rem 0;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: #d1d5db;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 6px;
}

.tab-btn:hover,
.tab-btn.active {
  background: #8b5cf6;
  color: white;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.game-card.unavailable {
  opacity: 0.6;
}

.game-image {
  position: relative;
}

.game-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  background: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.new {
  background: #10b981;
}

.badge.popular {
  background: #8b5cf6;
}

.badge.unavailable {
  background: #ef4444;
}

.favorite-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #d1d5db;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.3s;
}

.favorite-btn:hover,
.favorite-btn.active {
  color: #f43f5e;
}

.game-content {
  padding: 1rem;
}

.game-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.genre-badge {
  background: #8b5cf6;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #facc15;
}

.game-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.125rem;
  font-weight: 600;
}

.duration {
  font-size: 0.875rem;
  color: #9ca3af;
}

.game-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  background: #8b5cf6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1;
}

.btn-primary:hover {
  background: #7c3aed;
}

.btn-primary:disabled {
  background: #6b7280;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 2rem 0;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1e293b;
  border-radius: 12px;
  max-width: 90%;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(139, 92, 246, 0.2);
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and other WebKit browsers */
}

.modal-content.large-modal {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-btn {
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Reservation Modal specifics */
.reservation-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.reservation-left,
.reservation-right {
  flex: 1 1 300px;
}

.game-info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.game-info-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.game-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.game-info-card p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.game-requirements {
  margin-top: 2rem;
}

.game-requirements h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-requirements h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.accordion {
  margin-bottom: 1rem;
}

.accordion-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.accordion-header:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
}

.accordion-header.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.accordion-header i {
  transition: transform 0.3s;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 0 1rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content > * {
  padding: 1rem 0;
}

.pricing-tiers {
  margin-top: 2rem;
}

.pricing-tiers h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-option {
  position: relative;
  margin-bottom: 0.5rem;
}

.pricing-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pricing-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.pricing-option label p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

.pricing-option input[type="radio"]:checked + label {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.pricing-option label span {
  font-weight: 600;
  font-size: 1.125rem;
}

.calendar-section {
  margin-bottom: 2rem;
}

.calendar-section h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header h4 {
  margin: 0;
}

.calendar-nav {
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 1rem;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.calendar-day {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #d1d5db;
}

.calendar-day:hover:not(:disabled) {
  background: #8b5cf6;
}

.calendar-day.other-month {
  opacity: 0.3;
  pointer-events: none;
}

.calendar-day.past {
  opacity: 0.5;
  cursor: not-allowed;
}

.calendar-day.selected {
  background: #8b5cf6;
  font-weight: bold;
}

.calendar-day.selected-period {
  background-color: rgba(139, 92, 246, 0.5);
  border-radius: 0;
}

.calendar-day.selected.end-date,
.calendar-day.selected-period.end-date {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.calendar-day.selected.selected-period {
  background-color: #8b5cf6;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.calendar-day.unavailable {
  background-color: #ef4444;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.6;
}

.selected-period {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
}

.customer-form {
  margin-top: 2rem;
}

.customer-form h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.reservation-summary {
  margin-top: 2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
}

.reservation-summary h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(139, 92, 246, 0.3);
  font-size: 1.25rem;
  font-weight: bold;
  color: #8b5cf6;
}

/* Contact Modal specifics */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 2rem;
  color: #8b5cf6;
}

.contact-item p {
  margin: 0;
}

.contact-item strong {
  font-size: 1.125rem;
}

/* Pricing Modal specifics */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.pricing-column {
  flex: 1;
  min-width: 250px;
}

.pricing-column h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.pricing-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card p {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer p {
  font-size: 0.875rem;
  color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .filters-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-left,
  .filters-right {
    width: 100%;
    justify-content: space-between;
  }

  .select-wrapper select {
    min-width: unset;
    width: 100%;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  } 

  .reservation-content {
    flex-direction: column;
    gap: 1rem;
  }

  .reservation-left,
  .reservation-right {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
  }

  .modal-content.large-modal {
    max-width: 95%;
  }

  .game-image img {
    height: 150px;
  }

  .game-title {
    font-size: 1.125rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1rem;
  }
}