/**
 * celebrate.css
 * -----------------------------------------------------------------------------
 * Målgångskortet på startsidan, plus firanderutan och konfettin.
 */

/* Alltid synligt kort: bilden till vänster, texten till höger. */
.italy-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  margin: 0 0 22px;
}
.italy-card img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--r);
}
.italy-card .eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.italy-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.italy-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.italy-card a {
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}
.italy-card a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .italy-card {
    grid-template-columns: 160px 1fr;
    padding: 18px;
  }
  .italy-card img { width: 160px; height: 190px; }
}

/* Arkivet under målgångskortet. En rad per vecka, klickbar. */
.week-archive {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.week-archive a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.week-archive a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #dfe3e9;
}
.week-archive .wa-week {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.week-archive .wa-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.week-archive .wa-title {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-weight: 600;
  color: var(--green-dark);
}

/* Firanderutan över hela sidan. */
.bravo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 17, 21, 0.62);
}
.bravo-modal[hidden] { display: none !important; }

.bravo-card {
  width: min(100%, 380px);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 22px;
  text-align: center;
}
.bravo-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.bravo-card .flag {
  display: flex;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}
.bravo-card .flag span { flex: 1; }
.bravo-card .flag span:nth-child(1) { background: var(--green); }
.bravo-card .flag span:nth-child(2) { background: #f2f2f2; }
.bravo-card .flag span:nth-child(3) { background: var(--red); }
.bravo-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.bravo-card p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Bakom rutan, så texten går att läsa medan konfettin faller. */
.bravo-confetti {
  position: fixed;
  inset: 0;
  z-index: 75;
  pointer-events: none;
  overflow: hidden;
}
.bravo-confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: bravo-fall linear forwards;
}
@keyframes bravo-fall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .bravo-confetti { display: none; }
}
