/*
Theme Name: Da Nang Craft Beer Festival 2026 — Child
Theme URI: https://danangcraftbeerfest.com
Author: Developers Offshore
Author URI: https://developers-offshore.com
Description: Child theme for Da Nang Craft Beer Festival 2026. All customizations go here to preserve parent theme updates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Template: dncbf-2026
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dncbf-child
Domain Path: /languages
Tags: child-theme, festival, event, craft-beer, bilingual
*/

/* ==========================================================================
   1. CURSOR — Removed
   ========================================================================== */
.cursor,
.cursor-dot {
  display: none !important;
}
body,
body * {
  cursor: auto !important;
}

/* ==========================================================================
   2. HERO — Logo centered, no text title
   ========================================================================== */
.hero-logo-img {
  display: block;
  max-width: 360px;
  width: 80%;
  height: auto;
  margin: 0 auto var(--space-lg);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  opacity: 1 !important;
  transform: none !important;
}

/* Hide parent's multi-line title if it leaks through */
.hero-title {
  display: none;
}

/* Override parent GSAP initial hidden states for hero elements */
.hero-pre,
.hero-date,
.hero-venue,
.countdown,
.hero-cta-wrap,
.scroll-hint {
  opacity: 1 !important;
  transform: none !important;
}

/* Center hero content */
.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Remove venue address line (not in new design) */
.hero-venue {
  display: none;
}

/* ==========================================================================
   3. STATS — Icons + new layout
   ========================================================================== */
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  background: rgba(34,87,85,0.08);
  border-radius: 50%;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--dark-teal);
}

/* Text-based stat (Hours "10AM") */
.stat-num--text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--dark-teal);
  line-height: 1;
}

/* Stats grid — 5 items */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.stat-item {
  text-align: center;
  flex: 0 1 160px;
}

/* ==========================================================================
   4. LANGUAGE SWITCHER — Flags
   ========================================================================== */
.dncbf-lang-switcher__flag {
  width: 20px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
}

.dncbf-lang-switcher__name {
  font-size: 11px;
  opacity: 0.7;
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

/* ==========================================================================
   5. CAROUSEL — Arrow-based, no scroll lock
   ========================================================================== */
/* Kill parent's pin behavior */
.brewery-pin {
  height: auto !important;
  overflow: visible !important;
}

.brewery-track {
  transform: none !important;
  will-change: auto !important;
}

/* Carousel wrapper */
.dncbf-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.dncbf-carousel__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-md) 0;
}

.dncbf-carousel__track::-webkit-scrollbar {
  display: none;
}

.dncbf-carousel__item {
  scroll-snap-align: start;
  flex: 0 0 280px;
  text-decoration: none;
  color: inherit;
}

/* Arrow buttons */
.dncbf-carousel__prev,
.dncbf-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,246,230,0.2);
  background: rgba(34,87,85,0.8);
  color: var(--cream);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, opacity 0.3s;
  backdrop-filter: blur(8px);
}

.dncbf-carousel__prev { left: 8px; }
.dncbf-carousel__next { right: 8px; }

.dncbf-carousel__prev:hover,
.dncbf-carousel__next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark-teal);
}

/* Section on dark bg */
.section-dark .dncbf-carousel__prev,
.section-dark .dncbf-carousel__next {
  border-color: rgba(255,246,230,0.15);
  background: rgba(255,246,230,0.08);
}

.section-dark .dncbf-carousel__prev:hover,
.section-dark .dncbf-carousel__next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark-teal);
}

/* Carousel card styles — reuse parent brew-card-hp but adjust */
.dncbf-carousel__item.brew-card-hp {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark-teal);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dncbf-carousel__item.brew-card-hp:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.brew-card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* ==========================================================================
   6. SCHEDULE — 4 columns on desktop, stacked on mobile
   ========================================================================== */
/* Hide parent's day tabs */
.day-tabs {
  display: none !important;
}

.schedule-days-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding: 0 var(--page-pad);
}

.schedule-day-column {
  background: rgba(255,246,230,0.04);
  border: 1px solid rgba(255,246,230,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.schedule-day-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: var(--space-md);
  text-align: center;
  border-bottom: 1px solid rgba(255,246,230,0.1);
  padding-bottom: var(--space-sm);
}

.schedule-day-title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,246,230,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-entry {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,246,230,0.05);
  align-items: baseline;
}

.schedule-entry:last-child {
  border-bottom: none;
}

.schedule-entry__time {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  min-width: 50px;
}

.schedule-entry__info {
  flex: 1;
}

.schedule-entry__name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cream);
  font-weight: 500;
}

.schedule-entry__tag {
  display: inline-block;
  font-size: 10px;
  background: rgba(231,170,28,0.15);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-day-tba {
  color: rgba(255,246,230,0.3);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: var(--space-lg) 0;
}

/* ==========================================================================
   7. SECTION PADDING — Reduced (except tickets)
   ========================================================================== */
.section-compact {
  padding-top: var(--space-2xl) !important;
  padding-bottom: var(--space-2xl) !important;
}

.about-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.sponsors-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   8. SPONSORS — Font size match "Stay in the Loop"
   ========================================================================== */
.sponsors-label--large {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 900 !important;
  color: var(--cream) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  opacity: 1 !important;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   9. BREWERY ARCHIVE — Redesigned cards
   ========================================================================== */
.brew-card-beers {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  font-size: 13px;
}

.brew-card-beers li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid rgba(34,87,85,0.06);
  color: var(--brown);
}

.brew-card-beers li:last-child {
  border-bottom: none;
}

.brew-card-beer-abv {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--teal);
}

.brew-card-booth {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.brew-card-socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(34,87,85,0.08);
}

.brew-card-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.brew-card-socials a:hover {
  background: var(--gold);
  color: var(--dark-teal);
}

.brew-card-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Brew card header with name + booth */
.brew-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .schedule-days-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dncbf-carousel__item {
    flex: 0 0 260px;
  }
}

@media (max-width: 768px) {
  .schedule-days-grid {
    grid-template-columns: 1fr;
  }

  .dncbf-carousel {
    padding: 0 40px;
  }

  .dncbf-carousel__item {
    flex: 0 0 240px;
  }

  .dncbf-carousel__prev,
  .dncbf-carousel__next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .dncbf-carousel__prev { left: 4px; }
  .dncbf-carousel__next { right: 4px; }

  .hero-logo-img {
    max-width: 280px;
  }

  .stats-grid {
    gap: var(--space-md);
  }

  .stat-item {
    flex: 0 1 120px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
  }

  .stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .sponsors-label--large {
    font-size: 28px !important;
  }
}
