/* Thuso - Rakhi's Kitchen Premium Aesthetic Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@500;700;800&display=swap');

:root {
  --gold-primary: #d4af37;
  --gold-light: #f7e7b4;
  --gold-glow: rgba(212, 175, 55, 0.2);
  --bg-deep: #07090e;
  --surface-card: #0e121a;
  --surface-card-hover: #141a26;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(212, 175, 55, 0.25);
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
}

.font-serif-luxury {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-brand-title {
  font-family: 'Cinzel', serif;
}

body {
  background-color: var(--bg-deep);
  color: #e2e8f0;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Device Touch & Tap Responsiveness */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

.overflow-x-auto, .overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars when desired while preserving touch swipe */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Luxury Glassmorphism & Cards */
.luxury-glass {
  background: rgba(14, 18, 26, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}

.luxury-glass-nav {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.luxury-card {
  background: rgba(14, 18, 26, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(212, 175, 55, 0.12);
}

/* Subtle Gold Accents */
.gold-gradient-text {
  background: linear-gradient(135deg, #fff7dc 0%, #e5c573 50%, #c4972e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #e5c573 0%, #d4af37 50%, #b89127 100%);
}

.gold-border-glow {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 8px 24px -6px rgba(212, 175, 55, 0.15);
}

/* Seamless Logo Blend Effect */
.logo-blend {
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.18));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.logo-blend:hover {
  filter: drop-shadow(0 6px 22px rgba(212, 175, 55, 0.35));
}

/* Ambient Visual Effects */
.film-grain {
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Equalizer audio wave animation */
.audio-bar {
  width: 2px;
  background-color: #d4af37;
  border-radius: 2px;
  animation: soundBounce 1.2s infinite ease-in-out;
}
.audio-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.audio-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.audio-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes soundBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.1); }
}

/* Calendar Cells */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  font-size: 0.85rem;
  background: rgba(18, 24, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.calendar-cell.delivered {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.calendar-cell.upcoming {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f7e7b4;
}

.calendar-cell.paused {
  background: rgba(244, 63, 94, 0.06);
  border: 1px dashed rgba(244, 63, 94, 0.3);
  color: #fda4af;
  text-decoration: line-through;
}

.calendar-cell.weekend {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #475569;
  opacity: 0.65;
}

.calendar-cell.today {
  box-shadow: 0 0 0 2px #d4af37, 0 0 15px rgba(212, 175, 55, 0.25);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1e2433;
  border: 1px solid rgba(255,255,255,0.12);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #94a3b8;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #d4af37;
  border-color: #d4af37;
}
input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #07090e;
}

/* Print Invoice Styling - Pixel-Perfect A4 Format */
@media print {
  @page {
    margin: 6mm;
    size: A4 portrait;
  }
  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body * {
    visibility: hidden;
  }
  #invoiceModal,
  #printableInvoiceContent,
  #printableInvoice,
  #printableInvoice * {
    visibility: visible !important;
  }
  #invoiceModal {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
  }
  #invoiceModal > div {
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #printableInvoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Watermark-Free Clean Video Display */
.video-crop-clean {
  transform: scale(1.24);
  transform-origin: 8% 4%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Modal Video Player Fullscreen Container */
#modalPlayerWrapper:fullscreen {
  border-radius: 0 !important;
  border: none !important;
  background-color: #000;
  width: 100vw;
  height: 100vh;
}

#modalPlayerWrapper:-webkit-full-screen {
  border-radius: 0 !important;
  border: none !important;
  background-color: #000;
  width: 100vw;
  height: 100vh;
}

/* ============================================================== */
/* MOBILE & ALL-DEVICE RESPONSIVENESS                             */
/* ============================================================== */

/* Responsive Calendar Grid for Smartphones (320px - 640px) */
@media (max-width: 640px) {
  .calendar-grid {
    gap: 4px;
  }
  .calendar-cell {
    padding: 4px 3px;
    font-size: 0.72rem;
    min-height: 58px !important;
    border-radius: 8px;
  }
  .calendar-cell span.font-bold {
    font-size: 0.75rem;
  }
  .calendar-cell i {
    font-size: 0.65rem;
  }
}

/* Extra small devices (320px - 380px) */
@media (max-width: 380px) {
  .calendar-cell {
    min-height: 50px !important;
    padding: 2px 2px;
    font-size: 0.65rem;
  }
  .calendar-cell span.text-\[9px\] {
    font-size: 8px;
  }
}

/* Smooth Mobile Drawer Animation */
#mobileNavDrawer {
  animation: slideDownMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownMobile {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
