/* ==========================================================================
   GAINS CAFE — Gym Wall Poster Stylesheet (A4 Flyer / Poster)
   Location: Active Fitness (2nd & 3rd Floor), Banashankari 1st Stage, Bengaluru
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #0b1120;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* Control Panel (Hidden on Print) */
.poster-toolbar {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 850px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: #f8fafc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.qr-target-tabs {
  display: inline-flex;
  background: #0f172a;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #334155;
  gap: 3px;
}

.tab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  background: #10b981;
  color: #042f24;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.url-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.url-input-wrapper label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  white-space: nowrap;
}

.url-input-wrapper input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  color: #f1f5f9;
  font-size: 0.8rem;
  font-family: monospace;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}

.url-input-wrapper input:focus {
  border-color: #10b981;
}

.btn-apply {
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-apply:hover {
  background: #475569;
  color: #ffffff;
}

.btn-poster {
  background: #10b981;
  color: #042f24;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-poster:hover {
  background: #84cc16;
  transform: translateY(-2px);
}

.btn-back {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-back:hover {
  color: #ffffff;
  border-color: #94a3b8;
}

/* ==========================================================================
   A4 POSTER SHEET
   ========================================================================== */
.poster-sheet {
  width: 100%;
  max-width: 210mm; /* A4 width */
  min-height: 297mm; /* A4 height */
  background: #ffffff;
  border-radius: 12px;
  padding: 12mm 14mm;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 6px solid #10b981;
  position: relative;
  overflow: hidden;
}

/* Watermark/Accent background */
.poster-sheet::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.poster-header {
  text-align: center;
  background: #0a0f1d;
  color: #ffffff;
  margin: -12mm -14mm 6mm -14mm;
  padding: 8mm 10mm;
  border-bottom: 5px solid #10b981;
}

.poster-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.poster-logo-img {
  height: 52px;
  width: auto;
}

.poster-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.poster-title span {
  color: #10b981;
}

.poster-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Location Callout */
.poster-location-callout {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 10px;
  padding: 8px 16px;
  text-align: center;
  margin-bottom: 6mm;
}

.loc-banner-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #065f46;
  text-transform: uppercase;
}

.loc-banner-address {
  font-size: 0.85rem;
  color: #047857;
  font-weight: 600;
}

/* Center Call to Action & QR Code */
.poster-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2mm 0;
}

.poster-cta-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.poster-cta-headline span {
  color: #059669;
}

.poster-cta-desc {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 6mm;
}

.poster-qr-frame {
  background: #ffffff;
  padding: 12px;
  border: 4px solid #0f172a;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 5mm;
  display: inline-block;
}

#posterQrContainer, #posterQrContainer img, #posterQrContainer canvas {
  margin: 0 auto;
  display: block;
}

.scan-arrow-text {
  font-size: 0.9rem;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6mm;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Menu Highlights Grid on Poster */
.poster-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 6mm;
}

.poster-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.pfc-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.pfc-title {
  font-weight: 800;
  font-size: 0.825rem;
  color: #0f172a;
  line-height: 1.2;
}

.pfc-desc {
  font-size: 0.7rem;
  color: #64748b;
}

/* Poster Footer */
.poster-footer {
  border-top: 2px dashed #cbd5e1;
  padding-top: 4mm;
  text-align: center;
}

.footer-hotline {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.footer-hotline span {
  color: #059669;
}

.footer-location-full {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 4px;
}

.footer-hours-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   PRINT SPECIFIC OVERRIDES
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .poster-toolbar {
    display: none !important;
  }
  .poster-sheet {
    box-shadow: none !important;
    border: 4px solid #000000 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
    page-break-after: avoid !important;
    padding: 10mm 12mm !important;
  }
  .poster-header {
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
