/* ── I DO 2027 — Clean Countdown Page Stylesheet ── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --charcoal-dark: #231f20;
  --gold-primary: #c9a227;
  --gold-light: #e8d08a;
  --gold-gradient: linear-gradient(135deg, #FBEDD2 0%, #FBD190 50%, #c9a227 100%);
  --white: #ffffff;
  --glass-bg: rgba(35, 31, 32, 0.55);
  --glass-border: rgba(199, 149, 70, 0.2);
  --font-family-hebrew: 'Leon', sans-serif;
  --font-family-numbers: 'Outfit', sans-serif;
}

/* ── BASE RESET ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-hebrew);
  background-color: var(--charcoal-dark);
  color: var(--white);
  direction: rtl;
  text-align: right;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 100px;
}

/* ── BACKGROUND IMAGE ── */
.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-image: url('assets/background.jpg');
  background-position: center;
  background-size: cover;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(35, 31, 32, 0.25) 0%, rgba(23, 20, 21, 0.6) 70%, rgba(15, 13, 14, 0.8) 100%);
  z-index: 2;
  display: none;
}

/* ── COUNTER CONTAINER ── */
.counter-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.counter-header-text {
  font-family: var(--font-family-hebrew);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  direction: rtl;
  white-space: nowrap !important;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  direction: ltr !important;
}

.counter-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 149, 70, 0.4);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.counter-number {
  font-family: var(--font-family-numbers);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.counter-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* Tick bounce animation */
.counter-number.tick {
  animation: numberTick 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes numberTick {
  0% {
    transform: scale(0.9) translateY(-10px);
    opacity: 0.6;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ── RESPONSIVENESS ── */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px !important;
  }
  .counter-container {
    max-width: 340px;
    padding: 10px;
  }
  .counter-header-text {
    font-size: 17px;
  }
  .counter-grid {
    gap: 8px;
  }
  .counter-card {
    padding: 12px 4px;
  }
  .counter-number {
    font-size: 28px;
    margin-bottom: 4px;
  }
  .counter-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .counter-container {
    max-width: 290px;
    padding: 8px;
  }
  .counter-header-text {
    font-size: 14px;
  }
  .counter-grid {
    gap: 6px;
  }
  .counter-card {
    padding: 10px 3px;
  }
  .counter-number {
    font-size: 22px;
    margin-bottom: 3px;
  }
  .counter-label {
    font-size: 8px;
  }
}
