/* Shared styles for invitation template demos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #2d2a26;
  background: #f3eeeb;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 42, 38, 0.08);
}

.bar a {
  color: #008878;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.bar .title {
  font-size: 0.8rem;
  color: #6b6560;
}

.wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.card {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(45, 42, 38, 0.25);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  opacity: 0.75;
}

.names {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.date {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  opacity: 0.7;
}

.line {
  width: 3.5rem;
  height: 1px;
  margin: 0 auto 1.25rem;
  opacity: 0.45;
}

.copy {
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 18rem;
  margin: 0 0 1.5rem;
  opacity: 0.75;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  width: 100%;
  max-width: 16rem;
  margin-bottom: 1.5rem;
}

.countdown div {
  border-radius: 0.65rem;
  padding: 0.45rem 0.25rem;
  background: rgba(255, 255, 255, 0.55);
}

.countdown strong {
  display: block;
  font-size: 1rem;
}

.countdown span {
  font-size: 0.65rem;
  opacity: 0.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
}

/* Themes */
.theme-minimal .card {
  background: linear-gradient(165deg, #f6faf9, #d8f0eb 55%, #7fc4b8);
  color: #1a2b28;
}
.theme-minimal .line { background: #008878; }
.theme-minimal .btn { background: #008878; color: #fff; }

.theme-classic .card {
  background: linear-gradient(160deg, #fff8f0, #f5c98a 45%, #f09830);
  color: #1a2b28;
}
.theme-classic .line { background: #fff; }
.theme-classic .btn { background: #1a2b28; color: #fff; }

.theme-dark .card {
  background: linear-gradient(160deg, #12201e, #1a2b28 50%, #006b5f);
  color: #f6faf9;
}
.theme-dark .line { background: #f09830; }
.theme-dark .countdown div { background: rgba(255, 255, 255, 0.08); }
.theme-dark .btn { background: #008878; color: #fff; }

.theme-garden .card {
  background: linear-gradient(150deg, #f0f7f0, #b8d4b8 50%, #7a9e7a);
  color: #243024;
}
.theme-garden .line { background: #4a6b4a; }
.theme-garden .btn { background: #4a6b4a; color: #fff; }

.theme-gold .card {
  background: linear-gradient(150deg, #faf6ef, #e8d5a8 50%, #c4a35a);
  color: #3a3220;
}
.theme-gold .line { background: #8a7340; }
.theme-gold .btn { background: #2d2a26; color: #f5e6b8; }

.theme-pastel .card {
  background: linear-gradient(150deg, #fff0f5, #e0c3fc 50%, #a8d8ea);
  color: #3a3050;
}
.theme-pastel .line { background: #9b7bb8; }
.theme-pastel .btn { background: #9b7bb8; color: #fff; }
