/**
 * Adventure Bingo Landing Page Styles
 * Matches Flutter app: gradient #0081A7 → #00AFB9, Fuzzy Bubbles font
 */

:root {
  --ab-primary: #0081a7;
  --ab-tertiary: #00afb9;
}

html:has(body.ab-landing-page),
html:has(body.ab-bingo-sheet-page),
body.ab-landing-page,
body.ab-bingo-sheet-page {
  background: linear-gradient(135deg, var(--ab-primary) 0%, var(--ab-tertiary) 100%);
  min-height: 100vh;
}

.ab-landing {
  font-family: 'Fuzzy Bubbles', cursive;
  min-height: 100vh;
  background: transparent;
  color: #004D5C;
  padding: 2rem 1rem 3rem;
  box-sizing: border-box;
}

.ab-lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ab-lang-flag {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.15s;
}

.ab-lang-flag:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ab-lang-flag.is-active {
  opacity: 1;
}

.ab-hero {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.ab-header-banner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem 1rem 1.2rem;
  backdrop-filter: blur(3px);
}
.ab-top-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 0 auto 2.3rem;
}
.ab-top-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ab-top-menu-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.ab-top-menu-link.is-active {
  background: #ffffff;
  color: #006b86;
}

.ab-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.ab-description {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #ffffff;
  margin: 0 0 2rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.ab-store-buttons-wrap {
  text-align: center;
  margin: 0 auto 3rem;
}

.ab-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.ab-store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ab-store-btn:hover,
.ab-store-btn:focus,
.ab-store-btn:active,
.ab-store-btn *,
.ab-store-btn:hover *,
.ab-store-btn:focus * {
  text-decoration: none !important;
}

.ab-store-btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.ab-store-btn img {
  display: block;
  height: auto;
  max-height: 53px;
  width: auto;
  max-width: 180px;
}

.ab-store-btn-text {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.ab-adventures {
  max-width: 1100px;
  margin: 0 auto;
}

.ab-section-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ffffff;
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: 0.05em;
}

.ab-adventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ab-adventure-card {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Fuzzy Bubbles', cursive;
}

.ab-adventure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 65, 92, 0.2);
}

.ab-adventure-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #B8EDEB;
}

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

.ab-adventure-content {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ab-adventure-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: 1.15rem;
  color: #004D5C;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.ab-adventure-description {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: 0.9rem;
  color: #005F73;
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
  flex: 1;
}

/* Adventure card as link */
.ab-adventure-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.ab-adventure-card-link:hover,
.ab-adventure-card-link:focus,
.ab-adventure-card-link:active,
.ab-adventure-card-link *,
.ab-adventure-card-link:hover *,
.ab-adventure-card-link:focus * {
  text-decoration: none !important;
}

/* Footer */
.ab-footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ab-footer-about,
.ab-footer-links {
  margin: 0 0 0.5rem;
}

.ab-footer a {
  color: #ffffff;
  text-decoration: none;
}

.ab-footer a:hover {
  text-decoration: underline;
}

.ab-footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.ab-footer-social a {
  font-size: 1.25rem;
}
.ab-blog-posts {
  max-width: 1100px;
  margin: 0 auto;
}
.ab-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.ab-blog-card {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
}
.ab-blog-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.ab-blog-title a {
  color: #004d5c;
  text-decoration: none;
}
.ab-blog-title a:hover {
  text-decoration: underline;
}
.ab-blog-meta {
  margin: 0.45rem 0 0.5rem;
  color: #00748e;
  font-size: 0.9rem;
}
.ab-blog-excerpt {
  margin: 0;
  color: #005f73;
  line-height: 1.45;
}
.ab-blog-empty {
  text-align: center;
  color: #ffffff;
}

/* Contact page */
.ab-contact-notice {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}
.ab-contact-notice-success {
  background: rgba(180, 240, 200, 0.95);
  color: #0d4d24;
}
.ab-contact-notice-error {
  background: rgba(255 220 220 / 0.95);
  color: #6b1010;
}
.ab-contact-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ab-contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.ab-contact-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #ffffff;
}
.ab-contact-company-details {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.ab-contact-company-details p {
  margin: 0 0 0.5rem;
}
.ab-contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.ab-contact-social-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}
.ab-contact-social-link:hover {
  text-decoration: none;
}
.ab-contact-form {
  background: rgba(232, 251, 251, 0.95);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 12px rgba(0, 65, 92, 0.15);
}
.ab-contact-field {
  margin: 0 0 1rem;
}
.ab-contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #004d5c;
  font-weight: 600;
}
.ab-contact-field input[type="text"],
.ab-contact-field input[type="email"],
.ab-contact-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 77, 92, 0.35);
  border-radius: 8px;
  font: inherit;
}
.ab-contact-field textarea {
  resize: vertical;
  min-height: 120px;
}
.ab-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.ab-contact-submit-wrap {
  margin: 0;
}
.ab-contact-submit {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: #00748e;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ab-contact-submit:hover {
  background: #005f73;
}

/* Bingo sheet (4x3 grid, A4-fit) */
.ab-bingo-sheet {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header row: back | title | print – vertically aligned */
.ab-bingo-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.ab-bingo-back {
  flex-shrink: 0;
  color: #ffffff;
  text-decoration: none !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ab-bingo-back:hover {
  opacity: 0.9;
}

.ab-bingo-back-icon {
  display: block;
  width: 40px;
  height: 40px;
}

.ab-bingo-print-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 0.5rem 1rem;
  font-family: 'Fuzzy Bubbles', cursive;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.ab-bingo-print-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ab-bingo-print-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Print button as link - remove button-specific styles when used as <a> */
a.ab-bingo-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ab-bingo-sheet-title {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
}

.ab-bingo-sheet-subtitle {
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #ffffff;
  margin: 0 0 2rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
}

.ab-bingo-sheet-header .ab-bingo-sheet-title {
  flex: 1;
  margin: 0;
  text-align: center;
}

/* Printable area: full viewport width, each cell = screen width / 4 */
#ab-bingo-printable {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 2rem 20rem 3rem;
  box-sizing: border-box;
}

.ab-bingo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
}

.ab-bingo-cell {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 2mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 65, 92, 0.15);
  font-family: 'Fuzzy Bubbles', cursive;
  min-height: 0;
}

.ab-bingo-cell-refresh {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0, 129, 167, 0.15);
  color: #0081A7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.ab-bingo-cell-refresh svg {
  width: 36px;
  height: 36px;
}

.ab-bingo-cell-refresh:hover {
  background: rgba(0, 129, 167, 0.3);
  color: #004D5C;
}

/* Image fills cell width (cell = screen/4), square aspect ratio */
.ab-bingo-cell-image-wrap {
  width: 67%;
  max-width: 67%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  background: #ffffff;
  flex-shrink: 0;
}

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

.ab-bingo-cell-title {
  font-weight: 700;
  font-size: 1.13rem;
  color: #004D5C;
  text-align: center;
  margin: 0.33rem 0 0.33rem;
  line-height: 1.2;
}

/* Checkbox hidden on bingo sheet – shown only in PDF */
.ab-bingo-checkbox {
  display: none;
}

@media print {
  .ab-lang-switcher,
  .ab-bingo-back,
  .ab-bingo-print-btn,
  .ab-bingo-cell-refresh {
    display: none !important;
  }
  .ab-bingo-sheet {
    padding: 0;
  }
  .ab-bingo-cell {
    break-inside: avoid;
  }
}
