/* 
   Restaurant-specific Styles for Event Manager Website
   Contains additional styling for restaurant pages
*/

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 40vh;
    min-height: 300px;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
  }
  
  .hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
  }
  
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 2;
  }
  
  .hero-content h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  
  /* ===== Search Bar ===== */
.restaurant-search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.restaurant-search-input {
  padding-right: 50px;
  border-radius: 50px;
  height: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 20px;
  transition: all 0.3s ease;
}

.restaurant-search-input:focus {
  box-shadow: 0 4px 15px rgba(78, 84, 200, 0.2);
  border-color: var(--primary-color);
}

.restaurant-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.restaurant-search-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

[data-theme="dark"] .restaurant-search-input {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--border-color);
}

[data-theme="dark"] .restaurant-search-input:focus {
  box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}
  /* ===== Filter Section ===== */
  .filter-section {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
  }
  
  .filter-title {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
  }
  
  .filter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  }
  
  .btn-filter {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
  }
  
  .btn-filter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.4);
    background: var(--secondary-color);
    color: white;
  }
  
  .btn-clear-filter {
    background: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }
  
  .btn-clear-filter:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
  }
  
  /* ===== Active Filters ===== */
  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    min-height: 35px;
  }
  
  .filter-badge {
    background-color: rgba(78, 84, 200, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
  }
  
  .filter-badge .close-btn {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
  }
  
  .filter-badge:hover {
    background-color: rgba(78, 84, 200, 0.2);
  }
  
  .filter-badge .close-btn:hover {
    transform: scale(1.2);
  }
  
  /* ===== Restaurant List ===== */
  .custom-restaurant-list h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .custom-restaurant-list h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  }
  
  .custom-restaurant-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
  }
  
  .custom-restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .custom-restaurant-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .custom-restaurant-card:hover .custom-restaurant-img {
    transform: scale(1.05);
  }
  
  /* ===== Rating Stars ===== */
  .rating-stars {
    text-align: center;
    font-size: 1.1rem;
  }
  
  .rating-stars .fa-star {
    color: #ccc;
    margin: 0 2px;
  }
  
  .rating-stars .fa-star.checked {
    color: var(--warning-color);
  }
  
  /* ===== No Results Message ===== */
  #no-results {
    text-align: center;
    padding: 3rem 1rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: none;
  }
  
  #no-results i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
  }
  
  #no-results h3 {
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  #no-results .btn-link {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  #no-results .btn-link:hover {
    text-decoration: underline;
  }
  
  /* ===== Load More Button ===== */
  #load-more {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
  }
  
  #load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.4);
    background: var(--secondary-color);
  }

  /* ===== Equal-Height Restaurant Cards ===== */
.row-of-cards {
  display: flex;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  margin-bottom: 30px;
}

.custom-restaurant-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: none;
}

.card-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.custom-restaurant-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.25rem;
}

/* Maintain same-height cards in responsive views */
@media (max-width: 768px) {
  .card-img-container {
    height: 180px;
  }
  
  .custom-restaurant-img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .card-img-container {
    height: 160px;
  }
  
  .custom-restaurant-img {
    height: 160px;
  }
}
  
  /* ===== Responsive Styles ===== */
  @media (max-width: 992px) {
    .hero-section {
      height: 35vh;
    }
    
    .hero-content h1 {
      font-size: 2.5rem;
    }
    
    .hero-content p {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 768px) {
    .hero-section {
      height: 30vh;
    }
    
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .hero-content p {
      font-size: 1rem;
    }
    
    .filter-section {
      padding: 1.5rem;
    }
    
    .custom-restaurant-img {
      height: 180px;
    }
  }
  
  @media (max-width: 576px) {
    .hero-section {
      height: 25vh;
    }
    
    .hero-content h1 {
      font-size: 1.8rem;
    }
    
    .hero-content p {
      font-size: 0.9rem;
    }
    
    .filter-badge {
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
    }
    
    .custom-restaurant-card {
      margin-bottom: 1.5rem;
    }
    
    .custom-restaurant-img {
      height: 160px;
    }
  }

  /* 
   Restaurant-specific Dark Mode Styles
   This extends the restaurant-styles.css with dark mode functionality
*/

/* ===== Hero Section in Dark Mode ===== */
[data-theme="dark"] .hero-section {
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .hero-background {
    filter: brightness(0.5); /* Darker overlay for images in dark mode */
}

/* ===== Filter Section in Dark Mode ===== */
[data-theme="dark"] .filter-section {
    background-color: var(--card-bg);
    box-shadow: 0 5px 20px var(--shadow-color);
}

[data-theme="dark"] .filter-title {
    color: var(--text-color);
}

[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--border-color);
}

/* ===== Active Filters in Dark Mode ===== */
[data-theme="dark"] .filter-badge {
    background-color: rgba(78, 84, 200, 0.2);
    color: var(--secondary-color);
}

[data-theme="dark"] .filter-badge:hover {
    background-color: rgba(78, 84, 200, 0.3);
}

[data-theme="dark"] .btn-clear-filter {
    color: #ff6b6b; /* Brighter red in dark mode for better visibility */
    border-color: #ff6b6b;
}

[data-theme="dark"] .btn-clear-filter:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* ===== Restaurant List in Dark Mode ===== */
[data-theme="dark"] .custom-restaurant-list h2 {
    color: var(--text-color);
}

[data-theme="dark"] .custom-restaurant-card {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .card-body {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .card-title {
    color: var(--text-color);
}

[data-theme="dark"] .text-muted {
    color: #9e9e9e;
}

/* ===== Rating Stars in Dark Mode ===== */
[data-theme="dark"] .rating-stars .fa-star:not(.checked) {
    color: #444; /* Darker gray for unchecked stars in dark mode */
}

/* The checked stars remain the same warning color */

/* ===== No Results Message in Dark Mode ===== */
[data-theme="dark"] #no-results {
    background-color: var(--card-bg);
    box-shadow: 0 5px 20px var(--shadow-color);
    color: var(--text-color);
}

[data-theme="dark"] #no-results i {
    color: var(--secondary-color);
}

[data-theme="dark"] #no-results .btn-link {
    color: var(--secondary-color);
}

/* ===== Price Range Indicators in Dark Mode ===== */
[data-theme="dark"] .price-range {
    color: #9e9e9e;
}

[data-theme="dark"] .price-range .active {
    color: var(--secondary-color);
}

/* ===== Restaurant Categories/Tags in Dark Mode ===== */
[data-theme="dark"] .restaurant-category {
    background-color: rgba(78, 84, 200, 0.2);
    color: var(--secondary-color);
}

/* ===== Load More Button in Dark Mode ===== */
/* This should inherit from your main dark mode styling for buttons */

/* Lightweight Modal Styles */
.simple-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.simple-modal.show {
  opacity: 1;
}

.simple-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 50px;
  position: relative;
}

.simple-modal-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.simple-modal-img:hover {
  transform: scale(1.02);
}

.simple-modal-caption {
  color: white;
  padding: 15px 0;
  font-size: 1rem;
  text-align: center;
  max-width: 80%;
  opacity: 0.8;
  font-style: italic;
}

.simple-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f1f1f1;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.3s ease;
}

.simple-modal-close:hover {
  color: #ff4444;
}

.simple-modal-nav {
  position: absolute;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  transition: all 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

.simple-modal-nav:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.simple-modal-prev {
  left: 20px;
}

.simple-modal-next {
  right: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .simple-modal-nav {
      width: 40px;
      height: 40px;
      font-size: 30px;
  }
  
  .simple-modal-prev {
      left: 10px;
  }
  
  .simple-modal-next {
      right: 10px;
  }
  
  .simple-modal-img {
      max-height: 70vh;
  }
  
  .simple-modal-caption {
      font-size: 0.9rem;
  }
}

/* Optional: Accessibility and Keyboard Navigation Indicator */
.simple-modal-nav:focus {
  outline: 2px solid white;
  outline-offset: 3px;
}