/* ==========================================================================
   BIKINI CABANYAL — CARTA DIGITAL ESCALONADA (SAVORY THEME STYLING)
   Buttons matching www.bikinivlc.com & 3D Bottom-to-Top Page Flip
   ========================================================================== */

:root {
  --bg-dark: #120f0d;
  --bg-darker: #080605;
  --bg-surface: #1a1512;
  --color-gold: #c88746;
  --color-gold-light: #dfa065;
  --color-terracotta: #a84b32;
  --color-text: #f0e4d6;
  --color-text-muted: #a39284;
  --color-dark-main: #333333;
  --color-light-cream: #f7efe2;

  /* Typography based on www.bikinivlc.com */
  --font-btn: 'Open Sans', sans-serif;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Deck Geometry */
  --deck-w: 560px;
  --deck-h: 780px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(200, 135, 70, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 50% 85%, rgba(168, 75, 50, 0.08) 0%, transparent 55%);
  color: var(--color-text);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   BUTTONS IN THE STYLE OF WWW.BIKINIVLC.COM (.eltd-btn)
   Uppercase, letter-spacing: 1.5px, sharp rectangular edges, Open Sans
   ========================================================================== */
.eltd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: 0;
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-btn);
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0px; /* Sharp corners like www.bikinivlc.com */
  cursor: pointer;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease;
  text-decoration: none;
  border: 1.5px solid transparent;
}

/* Service Mode Switcher (Brunch vs Comida) */
.service-switcher {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(200, 135, 70, 0.35);
  border-radius: 0px;
  padding: 2px;
  gap: 2px;
}

.eltd-service-btn {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid transparent;
  padding: 6px 16px;
  flex-direction: column;
  gap: 2px;
}

.eltd-service-btn .btn-text {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.eltd-service-btn .btn-subtext {
  font-size: 9px;
  opacity: 0.75;
  letter-spacing: 1px;
  font-weight: 500;
}

.eltd-service-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.eltd-service-btn.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #120f0d;
}

.eltd-service-btn.active .btn-text,
.eltd-service-btn.active .btn-subtext {
  color: #120f0d;
  font-weight: 800;
}

/* Category Quick Jump Buttons (Row 2) */
.eltd-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #c9bcaf;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  font-size: 10.5px;
  white-space: nowrap;
}

.eltd-cat-btn:hover {
  background: rgba(200, 135, 70, 0.15);
  border-color: var(--color-gold);
  color: #fff;
}

.eltd-cat-btn.active {
  background: var(--color-light-cream);
  border-color: var(--color-light-cream);
  color: #181310;
  font-weight: 700;
}

/* PDF Download Button */
.eltd-pdf-btn {
  background: transparent;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 14px;
}

.eltd-pdf-btn:hover {
  background: var(--color-gold);
  color: #120f0d;
}

/* Tool Buttons (+, -, Fullscreen) */
.tool-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  width: 32px;
  height: 32px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: rgba(200, 135, 70, 0.2);
  border-color: var(--color-gold);
  color: #fff;
}

/* Nav Arrows (Side navigation) */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 0px; /* Sharp rectangular edges */
  background: rgba(18, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(200, 135, 70, 0.35);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.nav-prev {
  left: 20px;
}

.nav-next {
  right: 20px;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #120f0d;
}

.nav-arrow:disabled {
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top Header Navigation
   -------------------------------------------------------------------------- */
.flip-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(18, 14, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 135, 70, 0.18);
  display: flex;
  flex-direction: column;
  padding: 8px 20px 6px 20px;
  z-index: 100;
  gap: 7px;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.85;
  transform: translateX(-2px);
}

.brand-back-icon {
  font-size: 16px;
  color: var(--color-gold);
  line-height: 1;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #fff;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quick-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.quick-tabs::-webkit-scrollbar {
  display: none;
}

/* --------------------------------------------------------------------------
   Main Stage & Clipboard Deck
   -------------------------------------------------------------------------- */
.flip-stage {
  position: absolute;
  top: 92px;
  bottom: 48px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  overflow: hidden;
}

.deck-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.deck-board {
  position: relative;
  background: linear-gradient(145deg, #241c17, #181310);
  border-radius: 4px;
  padding: 10px 10px 14px 10px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(200, 135, 70, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center center;
  transition: transform 0.2s ease-out;
}

/* ==========================================================================
   SIMPLE FLIP UP EFFECT (Jednoduchý flip nahoru)
   Clean, smooth vertical 3D page flip pivoting from the top.
   ========================================================================== */
.sheets-stack {
  position: relative;
  width: var(--deck-w);
  height: var(--deck-h);
  overflow: visible;
  transition: width 0.3s ease, height 0.3s ease;
  perspective: 1200px;
  perspective-origin: 50% 15%;
}

/* Individual Sheet */
.menu-sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--sheet-h-pct);
  z-index: var(--z-index);
  background-color: transparent;
  transform-origin: top center;
  will-change: transform, opacity;
  border-radius: 0px;

  /* Default resting state: flat in stack */
  transform: rotateX(0deg) translateY(0);
  opacity: 1;
  transition: 
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Active Top Sheet */
.menu-sheet.active {
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Flipped State: Smooth flip upward out of view */
.menu-sheet.is-flipped {
  transform: rotateX(85deg) translateY(-25px);
  opacity: 0;
  pointer-events: none;
  z-index: 0 !important;
  transition: 
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
}

/* Paper Container */
.sheet-paper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  background-color: #faf7f1;
}

/* Menu Page Artwork Image */
.sheet-img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Interactive Hitbox over the bottom peeking tab strip */
.sheet-tab-target {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.menu-sheet:not(.active):not(.is-flipped) .sheet-tab-target:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Bottom Footer Status & Controls
   -------------------------------------------------------------------------- */
.flip-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(18, 14, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200, 135, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 100;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.page-info {
  font-family: var(--font-btn);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

.mobile-hint {
  font-size: 10px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  font-family: var(--font-btn);
}

/* --------------------------------------------------------------------------
   Responsive Layouts for Mobile & Tablets
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .flip-header {
    padding: 6px 10px 5px 10px;
    gap: 5px;
  }

  .brand-title {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .eltd-service-btn {
    padding: 5px 10px;
  }

  .eltd-service-btn .btn-text {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .eltd-service-btn .btn-subtext {
    display: none;
  }

  .eltd-cat-btn {
    font-size: 9.5px;
    padding: 5px 8px;
    letter-spacing: 1px;
  }

  .eltd-pdf-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .tool-btn {
    width: 28px;
    height: 28px;
  }

  .flip-stage {
    top: 86px;
    bottom: 44px;
    padding: 6px 8px;
  }

  .deck-board {
    padding: 8px 6px 8px 6px;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
    opacity: 0.85;
  }
  .nav-prev {
    left: 4px;
  }
  .nav-next {
    right: 4px;
  }

  .flip-footer {
    height: 44px;
  }

  .page-info {
    font-size: 10.5px;
  }

  .mobile-hint {
    font-size: 9px;
  }
}
