/* styles.css */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: #000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  background-image: url('greece-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ── News ticker ── */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
  background: rgba(20, 80, 180, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding: calc(0.55rem + env(safe-area-inset-top)) 0 0.55rem;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 5rem;
  animation: ticker-scroll 18s linear infinite;
}

.ticker-item {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 420px;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  min-width: 70px;
}

.value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.4rem;
}

/* ── Arrived state ── */
[hidden] { display: none !important; }

.arrived {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beer {
  font-size: min(80vw, 80vh);
  line-height: 1;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
             shake 0.5s ease-in-out 0.4s infinite;
}

@keyframes pop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes shake {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-8deg); }
  40%  { transform: rotate(8deg); }
  60%  { transform: rotate(-6deg); }
  80%  { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

/* ── Weather strip ── */
.weather-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)) 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.weather-location {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.weather-cards {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.weather-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  min-width: 72px;
}

.weather-date {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.weather-icon {
  font-size: 1.6rem;
  line-height: 1;
  white-space: nowrap;
}

.weather-temp {
  font-size: 0.7rem;
  margin-top: 0.2rem;
  opacity: 0.9;
  white-space: nowrap;
}
