/* ==========================================================
   CineSpace India - Luxury Cambria Typography & Brand Styling
   ========================================================== */

@import url('https://fonts.cdnfonts.com/css/cambria');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  --primary-orange: #ea580c;
  --primary-amber: #f97316;
  --primary-gold: #f59e0b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
}

/* Responsive Viewport & Overflow Protection for Mobile Devices (Poco, Xiaomi, Samsung, iPhone) */
html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Base Body Typography: Cambria Luxury Serif */
body {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  font-style: normal;
  background-color: var(--bg-page);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* Headings: Cambria Bold & High-Contrast Styling */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.015em;
}

/* Cambria Specific Typographic Variants */
.font-cambria {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', serif;
}

.font-cambria-normal {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', serif;
  font-weight: 400;
  font-style: normal;
}

.font-cambria-bold {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', serif;
  font-weight: 700;
  font-style: normal;
}

.font-cambria-italic {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
}

.font-cambria-bold-italic {
  font-family: 'Cambria', 'Cambria Math', 'Calisto MT', 'Georgia', serif;
  font-weight: 700;
  font-style: italic;
}

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

.font-cinzel {
  font-family: 'Cinzel', 'Cambria', 'Calisto MT', 'Georgia', serif;
}

.text-cinespace-gold {
  color: #b88a38;
}

.text-cinespace-navy {
  color: #102c52;
}

/* Custom Card & Layouts */
.cinespace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.cinespace-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Navigation Tabs matching Screenshots */
.nav-tab-btn {
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  background-color: transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nav-tab-btn.active {
  background-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

@media (max-width: 640px) {
  .nav-tab-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }
}

/* Compact Navigation Tab Buttons */
.merchant-tab-btn, .admin-tab-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.merchant-tab-btn:hover, .admin-tab-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.merchant-tab-btn.active, .admin-tab-btn.active {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Day Pill */
.day-pill {
  min-width: 56px;
  padding: 0.45rem 0.35rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.day-pill:hover {
  border-color: #ea580c;
}

.day-pill.selected {
  background-color: #ea580c;
  border-color: #ea580c;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.day-pill.selected span {
  color: #ffffff !important;
}

/* Slot Card */
.slot-card {
  padding: 0.55rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.15s ease;
  cursor: pointer;
}

.slot-card:hover {
  border-color: #ea580c;
}

.slot-card.selected {
  border-color: #ea580c;
  background-color: #fff7ed;
}

.slot-card.reserved {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Clean Input Fields matching screenshots */
.cin-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  font-size: 0.8125rem;
  color: #0f172a;
  transition: all 0.15s ease;
}

.cin-input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
