/* Custom CSS for Chè Củi Đà Nẵng */

/* Color Variables */
:root {
  --brown-color: #6b3e26;
  --light-brown: #8b4513;
  --cream-color: #fff8e1;
  --gold-color: #ffd700;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Text Colors */
.text-brown {
  color: var(--brown-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--cream-color) 0%, #ffecb3 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Menu Styling - Che Shop Style */
.specialty-badge {
  margin-bottom: 10px;
}

.specialty-badge .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 15px;
  letter-spacing: 0.5px;
}

.bg-brown {
  background-color: var(--brown-color) !important;
}

.text-brown {
  color: var(--brown-color) !important;
}

/* Menu Cards */
.menu-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  height: 100%;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffcc80, #ff9800, #ffc107);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card .card-body {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--brown-color);
}

.menu-card .card-text {
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
}

.menu-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.menu-card:hover .card-title {
  color: #ff6b35 !important;
}

.menu-card:hover .menu-icon i {
  transform: scale(1.2) rotate(5deg);
}

.menu-card:hover .specialty-badge .badge {
  transform: scale(1.1);
}

.price-tag {
  margin-top: 15px;
}

.price-tag .badge {
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '🔥';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  animation: bounce 2s infinite;
}

.page-header::after {
  content: '🔥';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  animation: bounce 2s infinite 0.5s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Contact Items */
.contact-item {
  padding: 20px;
  border-radius: 10px;
  background: #f8f9fa;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.contact-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Map Container */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--brown-color);
  box-shadow: 0 0 0 0.2rem rgba(107, 62, 38, 0.25);
}

/* Buttons */
.btn {
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--brown-color);
  border-color: var(--brown-color);
}

.btn-primary:hover {
  background: var(--light-brown);
  border-color: var(--light-brown);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--brown-color);
  border-color: var(--brown-color);
}

.btn-outline-primary:hover {
  background: var(--brown-color);
  border-color: var(--brown-color);
  transform: translateY(-2px);
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--brown-color) !important;
  font-weight: 600;
  padding: 10px 15px !important;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--brown-color);
  color: white !important;
  transform: translateY(-2px);
}

/* Cards */
.card {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

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

/* Price Tag */
.price-tag .badge {
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

/* Dân dã & Hấp dẫn Style */
.rating {
  margin-top: 10px;
}

.rating i {
  font-size: 14px;
  margin: 0 2px;
}

/* Enhanced Badges */
.specialty-badge .badge {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* CTA Section Enhanced */
.cta-section {
  background: linear-gradient(135deg, #ffcc80 0%, #ff9800 100%) !important;
  border: 3px solid #ff6b35;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
  animation: shimmer 4s infinite;
}

.cta-section .btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Section Headers Enhanced */
.menu-section-header h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    text-align: center;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .contact-item {
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto 15px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header::before,
  .page-header::after {
    font-size: 20px;
  }
  
  .menu-section-header h2 {
    font-size: 1.5rem;
  }
  
  .card-title {
    font-size: 0.9rem;
  }
  
  .specialty-badge .badge {
    font-size: 9px;
    padding: 4px 8px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--brown-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Grid for Menu */
@media (max-width: 1200px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 992px) {
  .col-lg-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 768px) {
  .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .menu-card .card-body {
    padding: 1rem;
  }
  
  .menu-icon {
    height: 60px;
  }
  
  .menu-icon i {
    font-size: 2rem !important;
  }
}

@media (max-width: 576px) {
  .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Menu Item Images */
.menu-icon img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu-card:hover .menu-icon img {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Enhanced Menu Icon Container */
.menu-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

/* Fallback for icons when images are not available */
.menu-icon i {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: all 0.3s ease;
}

.menu-card:hover .menu-icon i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Menu Section Headers */
.menu-section-header {
  position: relative;
  margin-bottom: 2rem;
}

.menu-section-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff9800, #ffc107);
  border-radius: 2px;
}

/* Badge Colors Enhanced */
.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107, #ff9800) !important;
  border: 1px solid #ff6b35;
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  border: 1px solid #17a2b8;
}

.badge.bg-info {
  background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
  border: 1px solid #495057;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #dc3545, #e91e63) !important;
  border: 1px solid #c82333;
}

.badge.bg-secondary {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
  border: 1px solid #343a40;
}

.badge.bg-primary {
  background: linear-gradient(135deg, #007bff, #0056b3) !important;
  border: 1px solid #004085;
}

.badge.bg-dark {
  background: linear-gradient(135deg, #343a40, #212529) !important;
  border: 1px solid #1d2124;
}

/* Hover Effects for Badges */
.specialty-badge .badge:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Loading State */
.menu-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.menu-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--brown-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Refactored Styles from HTML */
.navbar-custom {
  background-color: #d2b48c;
}

.page-header-menu {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

.page-header-menu .header-image {
  max-width: 250px;
  border: 3px solid #8b4513;
}

.menu-intro-image {
  max-width: 200px;
  margin: 0 auto;
}

.menu-card-custom {
  border-left: 4px solid #8b4513 !important;
}

.menu-card-custom .menu-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cta-section-menu {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

.cta-section-menu .cta-image {
  max-width: 180px;
  border: 3px solid #fff;
}

/* Restaurant-style Menu List */
.menu-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.menu-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px dashed #d2b48c; /* Dashed border with a soft brown color */
  transition: background-color 0.3s ease;
}

.menu-list-item:last-child {
  border-bottom: none;
}

.menu-list-item:hover {
  background-color: #fffaf0; /* A very light cream color on hover */
}

.menu-item-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.menu-item-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  border: 2px solid #d2b48c;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu-item-details h5 {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--brown-color);
  font-size: 1.1rem;
}

.menu-item-details p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
}

.menu-item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light-brown);
  white-space: nowrap;
  padding-left: 25px;
}

.menu-item-name .badge {
  font-size: 0.7rem;
  vertical-align: middle;
  margin-left: 8px;
  background-color: #8b4513 !important;
  color: white;
  padding: 5px 10px;
}
