/* U dvou přátel — francouzská kavárna · mobilní rám na PC */
:root {
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --espresso: #3d2314;
  --burgundy: #722f37;
  --wine: #5c2429;
  --gold: #c4a574;
  --latte: #d4c4a8;
  --chalk: #e8e2d8;
  --text: #3d2314;
  --muted: #7a6558;
  --border: rgba(61, 35, 20, 0.12);
  --shell-w: 420px;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 165, 116, 0.25), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(114, 47, 55, 0.08), transparent 45%),
    linear-gradient(160deg, #e8dfd0 0%, #d9cfc0 50%, #cfc4b4 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--wine); }

.hidden { display: none !important; }

/* Desktop — kavární pozadí kolem „telefonu“ */
.cafe-desktop {
  display: none;
}
@media (min-width: 520px) {
  .cafe-desktop {
    display: block;
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(calc(-1 * var(--shell-w) / 2 - 8rem));
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--burgundy);
    opacity: 0.5;
    pointer-events: none;
  }
}

/* Mobilní shell — na PC úzký sloupec uprostřed */
.mobile-shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  box-shadow:
    0 0 0 1px rgba(61, 35, 20, 0.08),
    0 24px 80px rgba(61, 35, 20, 0.18),
    0 0 0 12px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 520px) {
  .mobile-shell {
    margin: 1.5rem auto 3rem;
    min-height: calc(100vh - 4.5rem);
    border-radius: 28px;
  }
}

/* Ticket header */
.cafe-ticket {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 2px dashed var(--latte);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
}
.cafe-ticket.scrolled {
  box-shadow: 0 4px 20px rgba(61, 35, 20, 0.08);
}

.ticket-hole {
  width: 48px;
  height: 8px;
  background: #d9cfc0;
  border-radius: 999px;
  margin: 0 auto 0.75rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cafe-est {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--burgundy);
  letter-spacing: 0.05em;
}

.cafe-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 0.25rem 0;
  line-height: 1.2;
}

.cafe-motto {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.cafe-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}
.cafe-nav a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--espresso);
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.cafe-nav a:hover { border-bottom-color: var(--gold); }
.cafe-reserve {
  color: var(--burgundy) !important;
  font-weight: 700 !important;
}

.cafe-menu-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

/* Hero */
.cafe-hero {
  padding: 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-frame {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 200px;
  border-radius: 4px;
  background:
    linear-gradient(145deg, var(--cream-dark), var(--latte)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0zm30 30h30v30H30z' fill='%23c4a574' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-size: cover, auto;
  background-position: center;
  border: 3px solid var(--espresso);
  box-shadow: 4px 4px 0 var(--gold);
  margin-bottom: 1rem;
}
.hero-frame.has-image { background-color: var(--cream-dark); }

.hero-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  padding: 0 0.5rem;
}

.btn-espresso {
  display: inline-block;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-espresso:hover { background: var(--burgundy); color: var(--cream); }

/* Sections */
.cafe-section {
  padding: 2rem 1.25rem;
  border-bottom: 1px dashed var(--latte);
}
.cafe-section-warm { background: var(--cream-dark); }

.section-label {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--burgundy);
  margin-bottom: 0.15rem;
}

.cafe-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 1rem;
}

.section-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin: -0.5rem 0 1rem;
}

/* Menu board */
.menu-board {
  background: var(--chalk);
  border: 2px solid var(--espresso);
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
}
.menu-board::before {
  content: '☕';
  position: absolute;
  top: -12px;
  right: 12px;
  font-size: 1.2rem;
}

.price-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--latte);
  font-size: 1rem;
}
.price-card:last-child { border-bottom: none; }
.price-name { font-weight: 600; flex: 1; }
.price-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--burgundy);
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Amis — dva kadeřníci */
.amis-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-card {
  display: flex;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: 3px 3px 0 var(--gold);
}
.team-card:nth-child(even) { box-shadow: 3px 3px 0 var(--burgundy); }

.team-photo {
  flex-shrink: 0;
  width: 88px;
  height: 110px;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid var(--espresso);
  background: var(--latte);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--latte), var(--cream-dark));
}

.team-body { flex: 1; min-width: 0; }
.team-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--espresso);
  margin-bottom: 0.2rem;
}
.team-role {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--burgundy);
  margin-bottom: 0.35rem;
}
.team-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; }
.team-hours { width: 100%; font-size: 0.75rem; border-collapse: collapse; }
.team-hours td { padding: 0.2rem 0; border-bottom: 1px dotted var(--border); }
.zavreno { font-style: italic; color: var(--muted); }

/* Polaroid gallery */
.polaroid-strip {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.gallery-item {
  width: 85%;
  background: #fff;
  padding: 0.5rem 0.5rem 2rem;
  box-shadow: 0 4px 16px rgba(61, 35, 20, 0.12);
  transform: rotate(calc((var(--i, 0) - 1) * 2deg));
  cursor: pointer;
}
.gallery-item:nth-child(even) { transform: rotate(2deg); align-self: flex-end; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.35rem;
}

/* Nouvelles */
.nouvelles-feed { display: flex; flex-direction: column; gap: 1rem; }
.news-card {
  background: var(--cream);
  border-left: 4px solid var(--burgundy);
  padding: 1rem 1rem 1rem 1.1rem;
}
.news-card:nth-child(even) { border-left-color: var(--gold); }
.news-card time {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.35rem 0;
}
.news-card p { font-size: 0.92rem; color: var(--muted); }
.news-card-media {
  margin-top: 0.75rem;
  border: 2px solid var(--espresso);
  overflow: hidden;
}
.news-card-media img { width: 100%; display: block; }

/* Contact */
.contact-card {
  font-style: normal;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.contact-card a { color: var(--espresso); font-weight: 600; }

.hours-chalk {
  background: #2a2520;
  color: #e8e2d8;
  padding: 1rem 1.1rem;
  border-radius: 4px;
  font-family: var(--font-script);
}
.hours-chalk h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.hours-note { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.75rem; }
.hours-chalk table { width: 100%; font-size: 1.05rem; }
.hours-chalk td { padding: 0.25rem 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.hours-chalk td:last-child { text-align: right; }

.cafe-footer {
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  background: var(--espresso);
  color: var(--cream);
}
.cafe-footer p:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer-copy { font-size: 0.8rem; opacity: 0.75; margin-top: 0.35rem; }
.footer-copy a { color: var(--gold); }

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  gap: 0.75rem;
  color: var(--muted);
  font-style: italic;
}
.loading-cup { font-size: 2rem; animation: steam 1.5s ease-in-out infinite; }
@keyframes steam {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-4px); opacity: 0.7; }
}

.gallery-empty, .team-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 1.5rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(61, 35, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox img {
  max-width: min(90vw, var(--shell-w));
  max-height: 85vh;
  border: 8px solid #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--burgundy);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Admin */
.admin-fab {
  position: fixed;
  bottom: 1.25rem;
  right: calc(50% - var(--shell-w) / 2 + 1rem);
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  border: 2px solid var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(114, 47, 55, 0.35);
}
@media (max-width: 519px) {
  .admin-fab { right: 1.25rem; }
}

.admin-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(61, 35, 20, 0.5); }
.admin-panel.open { display: flex; justify-content: center; align-items: stretch; }
.admin-drawer {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  height: 100%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 2px dashed var(--latte);
}
.admin-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--burgundy);
}
.admin-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.admin-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.admin-hint { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.85rem; }
.admin-body label { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.65rem; font-weight: 600; }
.admin-body input, .admin-body textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  margin-top: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.85rem; }
.admin-tabs .tab {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 3px;
}
.admin-tabs .tab.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.upload-box { margin-bottom: 1.25rem; }
.upload-box h4 { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--burgundy); }
.hero-preview { height: 100px; background: var(--cream-dark); margin-bottom: 0.5rem; overflow: hidden; border: 1px solid var(--border); }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-upload { cursor: pointer; display: inline-block; }
.bunny-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.gallery-edit { display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
.gallery-edit-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.4rem; align-items: center; padding: 0.4rem; border: 1px solid var(--border); }
.gallery-edit-item img { width: 56px; height: 42px; object-fit: cover; }
.btn-delete-img { background: #fde8e8; color: var(--burgundy); border: none; padding: 0.3rem 0.5rem; font-size: 0.72rem; cursor: pointer; }
.edit-row { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem 0; border-bottom: 1px dotted var(--border); }
.edit-row input { flex: 1; min-width: 70px; }
.edit-block { margin-bottom: 0.65rem; }
.status-msg { margin-top: 0.65rem; font-size: 0.82rem; text-align: center; }
.status-msg.error { color: var(--burgundy); }
.status-msg.success { color: #3d6b4f; }
.btn { display: inline-block; padding: 0.6rem 1rem; font-family: inherit; font-size: 0.85rem; cursor: pointer; border: none; border-radius: 3px; }
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-secondary { background: var(--cream-dark); color: var(--espresso); border: 1px solid var(--border); }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.btn-block { width: 100%; text-align: center; }
.btn-icon { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--espresso); }
.admin-body .checkbox { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; color: var(--text); }

@media (max-width: 400px) {
  .cafe-nav { display: none; flex-direction: column; width: 100%; padding-top: 0.5rem; }
  .cafe-nav.open { display: flex; }
  .cafe-menu-btn { display: block; }
}

.creator-bar {
  --creator-bar-bg: var(--cream);
  --creator-bar-border: var(--border);
}

@media (min-width: 520px) {
  .mobile-shell > .creator-bar {
    border-radius: 0 0 28px 28px;
  }
}
