/* Pivnice U Tygra - Clean Professional Design */
/* AIAD Standard Library v2.0.0 */

[x-cloak] { display: none !important; }

/* ═══════ Glossary article typography ═══════ */
.glossary-content h2 {
  color: #f3a533;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(240, 140, 15, 0.15);
}

.glossary-content h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.glossary-content p {
  color: #b9af89;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.glossary-content strong {
  color: #fff;
  font-weight: 600;
}

.glossary-content a {
  color: #f3a533;
  text-decoration: none;
  transition: color 0.2s;
}

.glossary-content a:hover {
  color: #f7c46d;
}

.glossary-content ul, .glossary-content ol {
  color: #b9af89;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.glossary-content li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.glossary-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.glossary-content thead th {
  text-align: left;
  color: #958757;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glossary-content tbody td {
  color: #b9af89;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.glossary-content tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.glossary-content tbody td:first-child {
  color: #fff;
  font-weight: 500;
}

.glossary-content blockquote {
  border-left: 3px solid #f08c0f;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #a49766;
  font-style: italic;
}

.glossary-content code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: #f7c46d;
}

.glossary-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 2rem 0;
}

/* Line clamp for glossary cards (Tailwind CDN may not support) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Smooth scrolling + page snap === */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-snap-type: y proximity;
}

/* Sections snap to top of viewport */
section[id] {
  scroll-snap-align: start;
}

/* Disable snap on mobile when keyboard is open or when interacting with content */
@media (max-height: 500px) {
  html {
    scroll-snap-type: none;
  }
}

/* === Hero background === */
.hero-bg {
  background: linear-gradient(135deg, #0a0705 0%, #1a0f06 25%, #211408 50%, #1a0f06 75%, #0a0705 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(240, 140, 15, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(187, 85, 9, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25px 25px, rgba(255,255,255,0.015) 1px, transparent 0);
  background-size: 48px 48px;
  pointer-events: none;
}

/* === Glass morphism === */
.glass {
  background: rgba(43, 34, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
@supports (backdrop-filter: blur(1px)) {
  .glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
  }
}

/* === TV readability for na-cepu section (large screens) === */
@media (min-width: 1280px) {
  #na-cepu .beer-card {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.375rem;
  }

  #na-cepu .beer-card span,
  #na-cepu .beer-card a {
    font-size: 1rem;
  }
}

@media (min-width: 1920px) {
  #na-cepu .beer-card {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
  }

  #na-cepu .beer-card span,
  #na-cepu .beer-card a {
    font-size: 1.125rem;
  }

  #na-cepu h2 {
    font-size: 4rem;
  }
}

/* === Section backgrounds === */
.section-dark {
  background: linear-gradient(180deg, #0d0906 0%, #150d06 50%, #120c06 100%);
}
.section-darker {
  background: linear-gradient(180deg, #120c06 0%, #0d0906 50%, #100d07 100%);
}

/* === Subtle section divider === */
.foam-border {
  position: relative;
}
.foam-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 140, 15, 0.2), rgba(240, 140, 15, 0.35), rgba(240, 140, 15, 0.2), transparent);
}

/* === Text shadow for hero === */
.text-shadow {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* === Beer card === */
.beer-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.beer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(240, 140, 15, 0.15);
}

/* === Minimal animations === */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === Loading skeleton === */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0.375rem;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(187, 85, 9, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 140, 15, 0.5);
}

/* === Map dark filter === */
.map-dark {
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.85);
}

/* === Live indicator dot === */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* === Selection === */
::selection {
  background: rgba(240, 140, 15, 0.25);
  color: white;
}

/* === Focus (a11y) === */
*:focus-visible {
  outline: 2px solid rgba(240, 140, 15, 0.7);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(240, 140, 15, 0.2);
  border-radius: 2px;
}

/* Enhanced focus for interactive elements */
.beer-card:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(240, 140, 15, 0.8);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(240, 140, 15, 0.3);
  transform: translateY(-1px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* === SVG background patterns === */
.section-dark::after,
.section-darker::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f08c0f' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.section-dark,
.section-darker {
  position: relative;
}
.section-dark > div,
.section-darker > div {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════ */
/* KIOSK MODE - Fullscreen beer menu for displays          */
/* URL: ?kiosk=1                                           */
/* ═══════════════════════════════════════════════════════ */

body.kiosk-mode {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #0d0906 !important;
}

/* Hide EVERYTHING except kiosk content */
body.kiosk-mode > *:not(#kiosk-container) {
  display: none !important;
}

body.kiosk-mode nav,
body.kiosk-mode #home,
body.kiosk-mode #na-cepu,
body.kiosk-mode #jidlo,
body.kiosk-mode #salonek,
body.kiosk-mode #kontakt,
body.kiosk-mode footer,
body.kiosk-mode button[aria-label="Nahoru"],
body.kiosk-mode .foam-border::before {
  display: none !important;
}

/* Kiosk container */
#kiosk-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 2vh 2vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0d0906 0%, #150d06 100%);
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Kiosk header */
#kiosk-container .kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2vh;
  flex-shrink: 0;
  padding-bottom: 1.5vh;
  border-bottom: 1px solid rgba(240, 140, 15, 0.2);
}

#kiosk-container .kiosk-header-left {
  display: flex;
  align-items: center;
  gap: 2vw;
}

#kiosk-container .kiosk-header-right {
  display: flex;
  align-items: center;
  gap: 1vw;
}

#kiosk-container .kiosk-title {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin: 0;
}

#kiosk-container .kiosk-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22c55e;
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

#kiosk-container .kiosk-announcement {
  color: #f7c46d;
  font-size: clamp(1rem, 1.75vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
}

/* View toggle button */
#kiosk-container .kiosk-view-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  color: #b9af89;
  transition: all 0.2s;
}

#kiosk-container .kiosk-view-toggle:hover {
  background: rgba(240, 140, 15, 0.15);
  border-color: rgba(240, 140, 15, 0.3);
  color: #f08c0f;
}

#kiosk-container .kiosk-icon {
  width: clamp(1.5rem, 2.5vw, 2rem);
  height: clamp(1.5rem, 2.5vw, 2rem);
  display: block;
}

/* Kiosk content area */
#kiosk-container .kiosk-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ═══════ GRID VIEW ═══════ */
#kiosk-container .kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 1.5vh 1.5vw;
  padding-bottom: 2vh;
}

#kiosk-container .kiosk-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2vh 2vw;
  display: flex;
  flex-direction: column;
}

#kiosk-container .kiosk-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1vw;
  margin-bottom: 1vh;
}

#kiosk-container .kiosk-beer-name {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

#kiosk-container .kiosk-price {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  color: white;
  white-space: nowrap;
}

#kiosk-container .kiosk-brewery {
  font-size: clamp(1rem, 1.75vw, 1.5rem);
  color: #f08c0f;
  margin-bottom: 1vh;
}

#kiosk-container .kiosk-card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75vw;
  align-items: center;
  padding-top: 1vh;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

#kiosk-container .kiosk-style {
  background: rgba(240, 140, 15, 0.15);
  color: #f7c46d;
  padding: 0.4vh 1vw;
  border-radius: 0.375rem;
  font-size: clamp(0.875rem, 1.25vw, 1.25rem);
  font-weight: 600;
}

#kiosk-container .kiosk-stats {
  font-size: clamp(0.875rem, 1.25vw, 1.25rem);
  color: #b9af89;
  font-family: monospace;
}

/* ═══════ LIST VIEW ═══════ */
#kiosk-container .kiosk-list {
  display: flex;
  flex-direction: column;
}

#kiosk-container .kiosk-list-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 0.75fr 1fr;
  gap: 1vw;
  padding: 1.5vh 2vw;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.75rem, 1.25vw, 1rem);
  font-weight: 600;
  color: #958757;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

#kiosk-container .kiosk-list-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 0.75fr 1fr;
  gap: 1vw;
  padding: 2vh 2vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  transition: background 0.2s;
}

#kiosk-container .kiosk-list-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

#kiosk-container .kiosk-col-name {
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 700;
  color: white;
}

#kiosk-container .kiosk-col-brewery {
  font-size: clamp(1rem, 1.75vw, 1.5rem);
  color: #f08c0f;
}

#kiosk-container .kiosk-col-style {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  color: #f7c46d;
}

#kiosk-container .kiosk-col-abv {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  color: #b9af89;
  font-family: monospace;
}

#kiosk-container .kiosk-col-price {
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 800;
  color: white;
  text-align: right;
}

/* Empty state */
#kiosk-container .kiosk-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: #958757;
  height: 50vh;
}

/* Kiosk skeleton loading */
@keyframes kiosk-skeleton-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
#kiosk-container .kiosk-skeleton-card,
#kiosk-container .kiosk-skeleton-row {
  animation: kiosk-skeleton-fade 1.8s ease-in-out infinite;
}
#kiosk-container .kiosk-skeleton-card .skeleton,
#kiosk-container .kiosk-skeleton-row .skeleton {
  background: linear-gradient(90deg, rgba(149,135,87,0.08) 25%, rgba(240,140,15,0.12) 50%, rgba(149,135,87,0.08) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Scrollbar for kiosk */
#kiosk-container .kiosk-content::-webkit-scrollbar {
  width: 6px;
}

#kiosk-container .kiosk-content::-webkit-scrollbar-track {
  background: transparent;
}

#kiosk-container .kiosk-content::-webkit-scrollbar-thumb {
  background: rgba(240, 140, 15, 0.3);
  border-radius: 3px;
}

/* Footer */
#kiosk-container .kiosk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5vh;
  border-top: 1px solid rgba(240, 140, 15, 0.15);
  flex-shrink: 0;
  margin-top: auto;
}

#kiosk-container .kiosk-footer-left {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  color: #b8a882;
  font-weight: 600;
}

#kiosk-container .kiosk-footer-center {
  font-size: clamp(0.8rem, 1.25vw, 1rem);
  color: rgba(149, 135, 87, 0.6);
}

#kiosk-container .kiosk-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#kiosk-container .kiosk-clock {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #f0e6d0;
  font-variant-numeric: tabular-nums;
}

#kiosk-container .kiosk-staleness {
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: rgba(149, 135, 87, 0.5);
}

#kiosk-container .kiosk-staleness.stale {
  color: #f59e0b;
}

#kiosk-container .kiosk-staleness.offline {
  color: #f87171;
}

/* Kiosk interaction lockdown */
body.kiosk-mode {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: none !important;
}

body.kiosk-mode * {
  cursor: none !important;
}

/* ═══════ LARGE SCREEN / TV OPTIMIZATION (32"+, 1920px+) ═══════ */
@media (min-width: 1920px) {
  #kiosk-container {
    padding: 3vh 3vw;
  }

  #kiosk-container .kiosk-title {
    font-size: 4rem;
  }

  #kiosk-container .kiosk-live {
    font-size: 1.5rem;
  }

  #kiosk-container .kiosk-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5vh 2vw;
  }

  #kiosk-container .kiosk-card {
    padding: 3vh 2.5vw;
    border-radius: 1.25rem;
  }

  #kiosk-container .kiosk-beer-name {
    font-size: 2.25rem;
  }

  #kiosk-container .kiosk-price {
    font-size: 2.25rem;
  }

  #kiosk-container .kiosk-brewery {
    font-size: 1.75rem;
  }

  #kiosk-container .kiosk-style {
    font-size: 1.25rem;
    padding: 0.5vh 1.25vw;
  }

  #kiosk-container .kiosk-stats {
    font-size: 1.25rem;
  }

  /* List view - larger for TV readability */
  #kiosk-container .kiosk-list-header {
    font-size: 1.1rem;
    padding: 2vh 2.5vw;
  }

  #kiosk-container .kiosk-list-row {
    padding: 2.5vh 2.5vw;
  }

  #kiosk-container .kiosk-col-name {
    font-size: 2rem;
  }

  #kiosk-container .kiosk-col-brewery {
    font-size: 1.75rem;
  }

  #kiosk-container .kiosk-col-style {
    font-size: 1.5rem;
  }

  #kiosk-container .kiosk-col-abv {
    font-size: 1.5rem;
  }

  #kiosk-container .kiosk-col-price {
    font-size: 2rem;
  }

  #kiosk-container .kiosk-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  #kiosk-container .kiosk-view-toggle {
    padding: 1rem;
  }
}

/* ═══════ ULTRA-WIDE / 4K SCREENS (3840px+) ═══════ */
@media (min-width: 3840px) {
  #kiosk-container .kiosk-title {
    font-size: 5rem;
  }

  #kiosk-container .kiosk-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3vh 2.5vw;
  }

  #kiosk-container .kiosk-beer-name {
    font-size: 3rem;
  }

  #kiosk-container .kiosk-price {
    font-size: 3rem;
  }

  #kiosk-container .kiosk-brewery {
    font-size: 2.25rem;
  }

  #kiosk-container .kiosk-col-name {
    font-size: 2.75rem;
  }

  #kiosk-container .kiosk-col-price {
    font-size: 2.75rem;
  }
}
