@import '/assets/css/root.css';

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

body {
  font-family: 'BaiJamjuree', Arial, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-primary);
}

/* ---------------- LAYOUT ---------------- */

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
}

/* MAIN CONTAINER (NOW RESPONSIVE CORE) */
.container {
  display: flex;
  width: min(90vw, 360px);
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
  text-align: center;
  /* overflow: hidden; */

  /* 🔥 enables container-based scaling */
  container-type: inline-size;
}

/* ---------------- TYPOGRAPHY ---------------- */

h1 {
  font-weight: 700;
}

h2, h3 {
  font-weight: 500;
}

/* ---------------- LOGO ---------------- */

.logo {
  overflow: hidden;
}

.logo img {
  width: clamp(120px, 60cqw, 256px);
  height: auto;
}

/* ---------------- COUNTDOWN ---------------- */

.countdown {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.countdown h1 {
  font-size: clamp(4rem, 10cqw, 4rem);
}

.countdown h3 {
  font-size: clamp(0.6rem, 3cqw, 0.9rem);
  letter-spacing: 1em;
}

/* ---------------- DATE ---------------- */

.date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.2rem, 4cqw, 1.2rem);
}

.date .location {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: clamp(1rem, 3cqw, 1rem);
  gap: 0.5rem;
}

.date .location img {
  width: clamp(120px, 20cqw, 117px);
  height: auto;
}

/* ---------------- SPACER ---------------- */

.spacer {
  width: 100%;
  height: 1px;
  background-color: var(--text-secondary);
  opacity: 0.5;
}

/* ---------------- BUTTON ---------------- */

button {
  cursor: pointer;
  border: none;
  color: var(--text-primary);
  background-color: var(--button-gold-primary);

  font-size: clamp(0.9rem, 4cqw, 1.1rem);

  width: 100%;
  min-width: 18rem;
  height: clamp(36px, 8cqw, 45px);

  border-radius: 4px;
  transition: 0.2s ease;
}

button:hover {
  background-color: var(--button-gold-secondary);
}

/* ---------------- FOOTER ---------------- */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.footer img {
  width: clamp(32px, 5cqw, 32px);
}

.footer a {
  font-size: clamp(1rem, 3cqw, 1rem);
  font-weight: 700;
  text-decoration: none;
  color: var(--link-primary);
}

.footer a:hover {
  color: var(--link-secondary);
  text-decoration: underline;
}