@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;800&display=swap');

:root {
  --pino-yellow: #FFD700;
  --jofel-green: #2D6A2D;
  --bg: #FAF7F0;
  --orange: #E8731A;
  --gold: #C9A84C;
  --dark: #1a1a1a;
  --cream: #FFF8E7;
}

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

body {
  font-family: 'Baloo 2', cursive;
  background-color: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Header ── */
header {
  text-align: center;
  padding: 24px 0 8px;
  width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pag-logo {
  height: 90px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.site-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--jofel-green);
  text-shadow: 2px 2px 0 var(--pino-yellow), 4px 4px 0 rgba(0,0,0,0.08);
  line-height: 1.15;
}

.site-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--orange);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ── Pino Hero ── */
.pino-section {
  margin: 24px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pino-svg-wrap {
  animation: wobble 2.8s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 8px 20px rgba(255,215,0,0.45));
}

@keyframes wobble {
  0%   { transform: rotate(-4deg); }
  25%  { transform: rotate(3deg); }
  50%  { transform: rotate(-3deg); }
  75%  { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

.pino-caption {
  font-size: 1rem;
  color: var(--jofel-green);
  font-weight: 600;
  font-style: italic;
  opacity: 0.85;
}

/* ── Countdown ── */
.countdown-section {
  width: 100%;
  margin: 20px 0;
  text-align: center;
}

.countdown-label {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: var(--jofel-green);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.flip-card {
  background: var(--jofel-green);
  color: var(--pino-yellow);
  border: 3px solid var(--gold);
  border-radius: 14px;
  width: clamp(72px, 18vw, 110px);
  height: clamp(72px, 18vw, 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(45,106,45,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.1s;
  position: relative;
  overflow: hidden;
}

.flip-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%; height: 2px;
  background: rgba(0,0,0,0.25);
}

.flip-card.pulse {
  animation: pulse-digit 0.35s ease-out;
}

@keyframes pulse-digit {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.unit-label {
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--jofel-green);
  opacity: 0.8;
}

/* ── Celebration ── */
#celebration {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  background: var(--pino-yellow);
  border: 4px solid var(--jofel-green);
  border-radius: 20px;
  text-align: center;
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 20px 0;
  width: 100%;
}

@keyframes bounce-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

#celebration h2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--jofel-green);
}

#celebration p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--dark);
  font-weight: 600;
}

/* ── Divider ── */
.beer-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 24px 0;
  color: var(--gold);
  font-size: 1.4rem;
}

.beer-divider::before,
.beer-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Jofel Section ── */
.jofel-section {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.jofel-section h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--jofel-green);
  margin-bottom: 6px;
}

.jofel-section p {
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.jofel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.jofel-card {
  background: var(--cream);
  border: 3px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45,106,45,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.jofel-card:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 0 8px 28px rgba(45,106,45,0.3);
}

.jofel-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.jofel-card-label {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--jofel-green);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border-top: 2px solid var(--gold);
}

.retro-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--jofel-green);
  color: var(--pino-yellow);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 20px;
  border: 2px solid var(--gold);
  rotate: 8deg;
}

/* ── Quotes ── */
.quotes-section {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

.quotes-section h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--jofel-green);
  margin-bottom: 6px;
}

.quotes-intro {
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  text-align: left;
}

.quote-card {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-left: 5px solid var(--pino-yellow);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}

.quote-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}

.quote-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 10px;
}

.quote-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--jofel-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── René Le Blanc ── */
.rene-section {
  width: 100%;
  margin-bottom: 8px;
}

.rene-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--cream);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(45,106,45,0.18);
  position: relative;
  overflow: hidden;
}

.rene-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--jofel-green), var(--pino-yellow), var(--orange));
}

.rene-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.rene-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--jofel-green);
  box-shadow: 0 4px 16px rgba(45,106,45,0.3);
  display: block;
}

.rene-badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--jofel-green);
  color: var(--pino-yellow);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid var(--gold);
  white-space: nowrap;
}

.rene-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rene-info h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--jofel-green);
}

.rene-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rene-quote {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--dark);
  font-style: italic;
  line-height: 1.5;
  border-left: 4px solid var(--pino-yellow);
  padding-left: 12px;
  margin-top: 4px;
}

@media (max-width: 560px) {
  .rene-card {
    flex-direction: column;
    text-align: center;
  }

  .rene-quote {
    border-left: none;
    border-top: 4px solid var(--pino-yellow);
    padding-left: 0;
    padding-top: 10px;
  }
}

/* ── Footer ── */
footer {
  width: 100%;
  text-align: center;
  padding: 20px 0 10px;
  color: var(--jofel-green);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
  border-top: 2px dashed var(--gold);
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .countdown-grid {
    gap: 8px;
  }

  .jofel-card img {
    height: 200px;
  }

  .logo-wrap {
    flex-direction: column;
    gap: 10px;
  }
}

/* ── View Counter ── */
.views-section {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--dark);
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 400px;
}

.views-label {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.views-display {
  font-size: 4rem;
  font-weight: 800;
  color: var(--pino-yellow);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}

.views-sub {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ── Self Destruct Overlay ── */
#self-destruct {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#self-destruct.active {
  display: flex;
  animation: sd-flicker 0.1s infinite alternate;
}

#sd-inner {
  text-align: center;
  color: white;
}

#sd-skull {
  font-size: 6rem;
  animation: sd-pulse 0.5s infinite alternate;
}

#sd-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ff0000;
  letter-spacing: 0.1em;
  margin: 1rem 0;
}

#sd-countdown {
  font-size: 8rem;
  font-weight: 800;
  color: #ff4444;
  line-height: 1;
  transition: color 0.3s;
}

#sd-msg {
  color: #aaa;
  margin-top: 1rem;
  font-size: 1rem;
}

body.destroyed {
  filter: grayscale(1) blur(4px);
  pointer-events: none;
}

@keyframes sd-pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

@keyframes sd-flicker {
  from { background: rgba(0,0,0,0.97); }
  to   { background: rgba(20,0,0,0.97); }
}

/* ── Muziekwidget ── */
#music-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 1000;
  font-family: 'Baloo 2', cursive;
  font-size: 0.85rem;
  transition: background 0.3s;
}

#music-widget.playing {
  background: var(--jofel-green);
}

#music-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  animation: pulse-btn 2s infinite;
}

#music-widget.playing #music-btn {
  animation: none;
}

#music-label {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes pulse-btn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
