/* tapboard.css
   Wienerheim Brewery – Taproom Board
   Steampunk / gothic theme with gold accents
*/

/* Reset / base */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1b2735 0%, #05060a 55%, #010206 100%);
  color: #f7f3e8;
}

/* Layout shell */

.taproom-page {
  min-height: 100vh;
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
}

/* Header */

.taproom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.taproom-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brewery-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(243, 200, 108, 0.9);
  box-shadow:
    0 0 16px rgba(243, 200, 108, 0.5),
    0 0 42px rgba(0, 0, 0, 0.95);
  object-fit: cover;
  background: radial-gradient(circle at 30% 30%, #3d2a1a, #050407 70%);
}

.taproom-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.taproom-title {
  letter-spacing: 0.18em;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f3c86c;
}

.taproom-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 223, 191, 0.75);
}

.taproom-header-right {
  text-align: right;
}

.taproom-updated-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 205, 123, 0.85);
}

.taproom-updated-time {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(216, 203, 178, 0.85);
}

/* Main */

.taproom-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Sections */

.taproom-section {
  background: linear-gradient(135deg, rgba(14, 17, 25, 0.98), rgba(7, 9, 14, 0.98));
  border-radius: 14px;
  padding: 14px 18px 18px;
  box-shadow:
    0 0 0 1px rgba(245, 203, 120, 0.08),
    0 18px 35px rgba(0, 0, 0, 0.7);
}

.section-header {
  margin-bottom: 10px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 203, 120, 0.55);
  background: radial-gradient(circle at 30% 0%, rgba(245, 203, 120, 0.22), transparent 60%);
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #f3c86c;
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .taproom-page {
    padding: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .taproom-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .taproom-header-right {
    align-self: flex-end;
  }
}

/* Beer cards */

.beer-card {
  position: relative;
  display: flex;
  background: linear-gradient(145deg, #0e1117, #0a0c11);
  border-radius: 14px;
  border: 1px solid rgba(186, 158, 94, 0.25);
  padding: 10px 0;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  min-width: 0;
}

.beer-card * {
  max-width: 100%;
}

.beer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 232, 185, 0.08);
  pointer-events: none;
}

.beer-card-inner {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

/* Label art container */

.beer-art-wrap {
  flex: 0 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Label image – keep original aspect ratio, no stretching */

.beer-logo {
  max-height: 170px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

/* Text content */

.beer-text {
  flex: 1;
  padding: 16px 20px 16px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.beer-slot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(241, 220, 178, 0.85);
  margin-bottom: 2px;
}

.beer-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f7e2b6;
}

.beer-style-line {
  margin-top: 2px;
  font-size: 0.86rem;
  color: rgba(228, 212, 191, 0.88);
}

.beer-style-label {
  font-weight: 500;
  color: #f3c86c;
}

.beer-style-value {
  font-weight: 400;
}

.beer-abv-line {
  margin-top: 3px;
  font-size: 0.86rem;
  color: rgba(229, 215, 188, 0.9);
}

.beer-abv-label {
  font-weight: 600;
  color: #f5ce7b;
}

.beer-description {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(214, 203, 183, 0.95);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Card footer */

.beer-card-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 197, 168, 0.7);
}

.beer-card-footer span {
  white-space: nowrap;
}

/* Page footer */

.taproom-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 197, 168, 0.7);
}

@media (max-width: 800px) {
  .taproom-footer {
    flex-direction: column;
    gap: 6px;
  }
}

.footer-left {
  /* optional extra styling if needed later */
}

.footer-right {
  /* optional extra styling if needed later */
}

/* Kill per-card footers (taps and cans) */
.beer-card-footer,
.beer-footer {
  display: none !important;
}

/* Hide CAN 1 / CAN 2 / CAN 3 labels (second section only) */
.taproom-section:nth-of-type(2) .slot-label,
.taproom-section:nth-of-type(2) .beer-slot-label {
  display: none !important;
}

/* Ensure TAP 1 / TAP 2 / TAP 3 labels stay visible in the first section */
.taproom-section:first-of-type .slot-label,
.taproom-section:first-of-type .beer-slot-label {
  display: block !important;
}
/* ============= BEER DETAIL MODAL ============= */

.beer-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-out, visibility 0.3s;
}

.beer-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.beer-modal.is-closing {
  visibility: visible;
  opacity: 0;
}

.beer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.beer-modal.is-open .beer-modal-backdrop {
  opacity: 1;
}

.beer-modal.is-closing .beer-modal-backdrop {
  opacity: 0;
}

.beer-modal-panel {
  position: relative;
  z-index: 60;
  max-width: 960px;
  margin: 40px auto;
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #18131a, #050509 70%);
  box-shadow:
    0 0 0 1px rgba(243, 200, 108, 0.3),
    0 22px 50px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.beer-modal.is-open .beer-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.beer-modal.is-closing .beer-modal-panel {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.beer-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #f7e2b6;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.beer-modal-layout {
  display: flex;
  gap: 20px;
}

@media (max-width: 800px) {
  .beer-modal-panel {
    margin: 24px 12px;
    padding: 18px 16px;
  }

  .beer-modal-layout {
    flex-direction: column;
  }
}

.beer-modal-art-wrap {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.beer-modal-image {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.85);
}

.beer-modal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.beer-modal-name {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f7e2b6;
}

.beer-modal-style {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3c86c;
  margin-top: 2px;
}

.beer-modal-meta {
  font-size: 0.9rem;
  margin-top: 4px;
  color: rgba(229, 215, 188, 0.9);
}

.beer-modal-description {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(214, 203, 183, 1);
}

.beer-modal-story {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(242, 205, 123, 0.95);
  border-top: 1px solid rgba(245, 203, 120, 0.25);
  padding-top: 8px;
}

.beer-modal-extra {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(214, 197, 168, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* ============================================
   SCROLLING MESSAGE BANNER
   ============================================ */
.scrolling-message-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, 
    rgba(245, 203, 120, 0.1) 0%,
    rgba(245, 203, 120, 0.15) 50%,
    rgba(245, 203, 120, 0.1) 100%);
  border-top: 1px solid rgba(245, 203, 120, 0.3);
  border-bottom: 1px solid rgba(245, 203, 120, 0.3);
  padding: 12px 0;
  margin: 20px 0;
}

.scrolling-message-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-message 30s linear infinite;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(245, 203, 120, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@keyframes scroll-message {
  0% {
    transform: translateX(calc(100vw + 100%));
    opacity: 1;
  }
  3% {
    transform: translateX(calc(100vw + 100%));
    opacity: 1;
  }
  70% {
    transform: translateX(-100%);
    opacity: 1;
  }
  73% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Optional: Pause animation on hover */
.scrolling-message-banner:hover .scrolling-message-content {
  animation-play-state: paused;
}

/* Hide banner if no message */
.scrolling-message-banner.hidden {
  display: none;
}