/* 
   Lazzat Restaurant - Enhanced Premium Layer 
   This file safely overlays the original styles to provide a "Maximally Ideal" modern UI.
*/

:root {
  /* Refining the color palette for a truly premium aesthetic */
  --gold: #D4AF37; /* Richer, classic premium gold */
  --gold-light: #F3E5AB;
  --gold-dark: #B8860B;
  --cream: #FAFAFA; /* Cleaner, ultra-modern white-cream background */
  --cream2: #FFFFFF; /* Pure white for elevated surfaces */
  --text: #2C2C2C; /* Softer, highly readable dark gray */
  --muted: #888888;
  
  /* Upgraded shadow scale */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(212, 175, 55, 0.15); /* Elegant gold-tinted shadow */
  
  --radius: 24px; /* Slightly rounder, softer edges */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── MODERN TYPOGRAPHY REFINEMENTS ── */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.2px;
}

.logo-name {
  letter-spacing: 0;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

/* ── NAVBAR ENHANCEMENT ── */
.navbar {
  background: rgba(26, 16, 8, 0.45) !important; /* Semi-dark default */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background: rgba(10, 5, 2, 0.95) !important; /* Deep dark on scroll */
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.nav-links a {
  color: #FFFFFF !important; /* Ensure high contrast white text */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* ── PRODUCT CARD POLISHING ── */
.product-card {
  background: var(--cream2) !important;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.3);
}

.product-img {
  width: 100%;
  height: 240px !important;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.05);
}

.product-body {
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem !important;
  color: var(--dark) !important;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.product-name:hover {
  color: var(--gold) !important;
}

.product-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  flex-grow: 1; /* Pushes footer to bottom */
  margin-bottom: 1.5rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.product-price {
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--dark) !important;
}

.price-sub {
  font-size: 0.85rem !important;
  color: var(--muted);
  font-weight: 500;
}

/* ── BUTTON OVERHAUL ── */
.btn-cart {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: white !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-decoration: none;
}

.btn-cart:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5) !important;
}

.badgePop {
  animation: badgePopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePopUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Enhancing input fields for reservations/contact */
input, textarea, select {
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-family: inherit;
  transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* ── "VIDEO-LIKE" CINEMATIC MESH BACKGROUND ── */
/* Bu sinfni har qanday katta bloklarga orqa fon qilib berish mumkin (masalan, home.html dagi .hero ichiga) */
.cinema-bg {
  position: relative;
  background: linear-gradient(120deg, #1A1008, #050505, #2C1F0E);
  background-size: 300% 300%;
  animation: cinemaGradient 15s ease infinite alternate;
  z-index: 1;
}

@keyframes cinemaGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cinema-bg::before,
.cinema-bg::after {
  content: "";
  position: absolute;
  inset: -100px;
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 50, 40, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  animation: cinemaGlow 10s ease-in-out infinite alternate;
}

.cinema-bg::after {
  background-image: 
    radial-gradient(ellipse at 60% 70%, rgba(46, 139, 87, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  animation-delay: -5s;
  animation-duration: 14s;
}

@keyframes cinemaGlow {
  0% { transform: scale(1) translateX(0) translateY(0) rotate(0deg); }
  50% { transform: scale(1.1) translateX(-3%) translateY(5%) rotate(3deg); }
  100% { transform: scale(1) translateX(4%) translateY(-4%) rotate(-2deg); }
}
