/* VMAX 365 RADAR RESTAURANT SEGUKU - PRECISION PRINT & DISPLAY SYSTEM */
/* Dual Modes: 4-Page A4 Booklet & 1-Page Master Table Flyer */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800;900&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --red-primary: #C9141D;
  --red-dark: #9E0D14;
  --red-gradient: linear-gradient(135deg, #B91C1C 0%, #DC2626 50%, #991B1B 100%);
  --gold-accent: #EAB308;
  --gold-dark: #B45309;
  --gold-badge: #FEF3C7;
  --cream-bg: #FAF6F0;
  --card-white: #FFFFFF;
  --text-primary: #1C1917;
  --text-muted: #57534E;
  --text-light: #78716C;
  --border-red: #FCA5A5;
  --border-cream: #E7DFD5;
  --shadow-sheet: 0 16px 45px rgba(0, 0, 0, 0.4);
  --font-title: 'Outfit', sans-serif;
  --font-text: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-text);
  background-color: #262626;
  color: var(--text-primary);
  line-height: 1.35;
  padding: 30px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FLOATING SCREEN CONTROLLER & MODE SWITCHER */
.floating-print-helper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1C1917;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1.5px solid #FDE047;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.view-mode-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2D2825;
  padding: 4px;
  border-radius: 9999px;
}

.view-tab-btn {
  background: transparent;
  color: #D6D3D1;
  border: none;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-tab-btn.active {
  background: var(--red-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(201, 20, 29, 0.4);
}

.fab-btn {
  background: var(--red-primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.fab-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* MAIN BOOKLET / FLYER CONTAINER */
.menu-booklet-container {
  width: 100%;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: transform 0.2s ease;
}

/* =========================================
   MODE 1: 4-PAGE A4 BOOKLET
========================================= */
.menu-sheet {
  width: 100%;
  aspect-ratio: 1 / 1.4142; /* Exact A4 ratio */
  background: var(--cream-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Page-Specific Rich Mosaics of Cups, Ice Creams, Boba & Desserts */
#sheet-page-1 {
  background: url('assets/mosaics/bg_mosaic_page1.jpg') center/cover no-repeat;
}

#sheet-page-2 {
  background: url('assets/mosaics/bg_mosaic_page2.jpg') center/cover no-repeat;
}

#sheet-page-3 {
  background: url('assets/mosaics/bg_mosaic_page3.jpg') center/cover no-repeat;
}

/* Cover Sheet */
.sheet-cover-img {
  background: #A00F16;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-a4-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sheet Header - Clean, Prestigious Title (No Logos or Badges on Top Left) */
.sheet-header {
  background: var(--red-gradient);
  color: #FFFFFF;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2.5px solid #FDE047;
  flex-shrink: 0;
}

.sheet-header-left {
  display: flex;
  align-items: center;
}

.sheet-header-titles h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.sheet-header-titles p {
  font-size: 0.74rem;
  color: #FEE2E2;
  margin-top: 2px;
  font-weight: 600;
}

.sheet-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #FDE047;
}

.sheet-page-num-pill {
  background: rgba(0, 0, 0, 0.25);
  color: #FDE047;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(253, 224, 71, 0.4);
}

/* Products Grid (2 Columns, Even Vertical Spacing to Occupy Full A4 Page) */
.sheet-products-grid {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
  row-gap: 18px;
  background: transparent; /* Allow cup & ice cream mosaic wallpaper to show through */
  flex: 1;
  align-content: space-between; /* Spread evenly across full height */
}

/* Compact Grid for 10 items (Page 3) */
.sheet-products-grid.grid-compact-10 {
  padding: 12px 16px;
  row-gap: 12px;
  column-gap: 14px;
  align-content: space-between;
}

/* Product Card - Enlarged Visuals & Frosted Glass */
.menu-product-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(231, 223, 213, 0.95);
  border-radius: 14px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 165px 1fr; /* ENLARGED 165px PRODUCT PHOTO */
  gap: 14px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.menu-product-card.compact-card {
  grid-template-columns: 135px 1fr; /* ENLARGED 135px FOR 10-ITEM GRID */
  padding: 8px 12px;
  gap: 12px;
  border-radius: 12px;
}

.menu-product-card.signature-card {
  border: 1.8px solid #FCD34D;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.18);
}

/* ENLARGED PRODUCT PHOTO CONTAINERS */
.card-photo-box {
  width: 165px;
  height: 165px;
  background: radial-gradient(circle, #FEE2E2 0%, #FAF5EE 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  border: 1.5px solid rgba(220, 38, 38, 0.2);
  overflow: hidden;
}

.card-photo-box.compact-photo {
  width: 135px;
  height: 135px;
  padding: 6px;
  border-radius: 10px;
}

.card-photo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

.card-serving-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(28, 25, 23, 0.88);
  color: #FEF3C7;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.card-info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-main-name {
  font-family: var(--font-title);
  font-size: 1.15rem; /* Larger title */
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.compact-card .item-main-name {
  font-size: 1.05rem;
}

.item-badge-pill {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Pricing Triad Banner - Generous and Readable */
.price-triad-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr;
  align-items: center;
  gap: 6px;
}

.triad-cell {
  display: flex;
  flex-direction: column;
}

/* BV label (Points) — subdued, secondary */
.triad-title {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.1;
}

/* BV value — small, plain, not bold */
.val-bv {
  font-family: var(--font-text);
  font-size: 0.74rem;
  font-weight: 400;
  color: #94A3B8; /* soft slate-blue, clearly secondary */
  letter-spacing: 0.2px;
}

/* Regular price — medium emphasis */
.val-regular {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Member / VIP price — primary emphasis */
.val-member {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 900;
  color: #B91C1C;
}

.sheet-footer {
  background: #1C1917;
  color: #FFFFFF;
  padding: 7px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  border-top: 2px solid #FDE047;
  flex-shrink: 0;
}

.sheet-footer strong {
  color: #FDE047;
}

/* =========================================
   MODE 2: MASTER 1-PAGE TABLE FLYER
   (Exact Match to Physical Menu Inspo)
========================================= */
.flyer-master-sheet {
  aspect-ratio: auto; /* Fits all flyer content seamlessly */
  min-height: auto;
  background: url('assets/mosaics/bg_mosaic_flyer.jpg') center/cover no-repeat;
  padding: 0;
  border: 3px solid #C9141D;
  border-radius: 8px;
  position: relative;
}

.flyer-header {
  background: #C9141D;
  color: #FFFFFF;
}

.flyer-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 60%, #991B1B 100%);
  border-bottom: 2px solid #FDE047;
}

.flyer-brand-main {
  display: flex;
  align-items: center;
}

.flyer-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.flyer-subtitle {
  font-size: 0.74rem;
  color: #FEF3C7;
  font-weight: 700;
  margin-top: 2px;
}

.flyer-vip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px dashed #FDE047;
}

.flyer-vip-text {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.flyer-vip-text strong {
  font-size: 0.72rem;
  color: #FDE047;
}

.flyer-vip-text span {
  font-size: 0.65rem;
  color: #FFFFFF;
}

.flyer-qr-code {
  width: 48px;
  height: 48px;
  background: #FFFFFF;
  padding: 2px;
  border-radius: 6px;
}

.flyer-info-strip {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(4px);
  color: #44403C;
  font-size: 0.72rem;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #E7DFD5;
}

.flyer-body-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding: 14px;
  background: transparent; /* Allow mosaic of drinks and treats to show */
}

.flyer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flyer-section-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.flyer-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #FEE2E2;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.heading-badge {
  background: #C9141D;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.heading-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #78716C;
}

/* 2 Big Hero Signature Drinks */
.flyer-sig-heroes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.flyer-hero-drink {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border: 1.5px solid #FCA5A5;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flyer-hero-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.flyer-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flyer-hero-tag {
  font-size: 0.58rem;
  font-weight: 800;
  color: #B91C1C;
  text-transform: uppercase;
}

.flyer-hero-name {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 900;
  color: #1C1917;
}

.flyer-hero-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.price-pill-reg {
  font-size: 0.65rem;
  font-weight: 700;
  color: #57534E;
}

.price-pill-mem {
  font-size: 0.72rem;
  font-weight: 900;
  color: #B91C1C;
}

.price-pill-bv {
  font-size: 0.62rem;
  font-weight: 500;
  color: #94A3B8; /* soft slate grey, not bold */
}

/* 3 Fruit Triad */
.flyer-sig-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.flyer-triad-card {
  border: 1px solid #F3F4F6;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  background: #FAFAFA;
}

.flyer-triad-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto 4px auto;
  display: block;
}

.flyer-triad-name {
  font-size: 0.68rem;
  font-weight: 800;
  display: block;
  line-height: 1.15;
  color: #1F2937;
  height: 28px;
}

.flyer-triad-price strong {
  font-size: 0.72rem;
  color: #B91C1C;
  display: block;
}

.flyer-triad-price small {
  font-size: 0.58rem;
  color: #6B7280;
}

/* Strip pair */
.flyer-strip-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.flyer-strip-item {
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.strip-item-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #9F1239;
}

.strip-item-price {
  font-size: 0.72rem;
  font-weight: 900;
  color: #B91C1C;
}

.strip-item-price small {
  font-size: 0.6rem;
  font-weight: 600;
  color: #6B7280;
}

/* Table rows */
.flyer-table-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flyer-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  background: #F9FAFB;
  border-bottom: 1px solid #F3F4F6;
}

.flyer-row-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1F2937;
}

.flyer-row-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flyer-val-reg {
  font-size: 0.68rem;
  color: #6B7280;
}

.flyer-val-mem {
  font-size: 0.76rem;
  font-weight: 900;
  color: #B91C1C;
}

.flyer-val-bv {
  font-size: 0.64rem;
  font-weight: 500;
  color: #94A3B8; /* soft slate grey, not bold */
}

/* Right column elements */
.flyer-icecream-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
  border: 1.5px solid #FCA5A5;
}

.hero-cone-photo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.icecream-hero-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 900;
  color: #1C1917;
  margin: 3px 0;
}

.icecream-hero-price {
  display: flex;
  gap: 6px;
}

/* Sundaes row */
.flyer-sundae-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.flyer-sundae-card {
  text-align: center;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 6px 4px;
}

.flyer-sundae-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.flyer-sundae-name {
  font-size: 0.68rem;
  font-weight: 800;
  display: block;
  margin-top: 2px;
}

.flyer-sundae-price strong {
  font-size: 0.74rem;
  color: #B91C1C;
}

.flyer-sundae-bv {
  font-size: 0.58rem;
  color: #78716C;
  display: block;
}

.flyer-bottom-banner {
  background: #C9141D;
  color: #FFFFFF;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.flyer-bottom-banner strong {
  color: #FDE047;
  letter-spacing: 0.5px;
}

/* =========================================
   PRINT STYLES
========================================= */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .floating-print-helper {
    display: none !important;
  }

  .menu-booklet-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .menu-sheet {
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}
