/* Overlay and background */
#countdown-overlay {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('timer_backround.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  overflow: hidden;
}

@media (max-width: 768px) {
  #countdown-overlay {
    background-position: top center;
  }
}

/* Sayfa arka planına yumuşak geçiş sağlayan gölge (Fotoğraftaki gibi) */
#countdown-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
  z-index: 1;
}

/* Animasyonlu Işık ve Kenarlık için Kapsayıcı */
.countdown-wrapper {
  position: absolute;
  bottom: 20%;
  border-radius: 72px;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.6);
  background-color: rgba(100, 100, 100, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Dolaşan Işık Efekti */
.countdown-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(255, 255, 255, 0.9) 100%);
  animation: rotate-light 60s linear infinite;
  z-index: 0;
}

@keyframes rotate-light {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Geri Sayım Kapsayıcısı (İç Alan) */
.countdown-container {
  background-color: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: 70px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 50px;
  gap: 30px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Üst Başlık */
.countdown-title {
  margin: 0;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 4px;
  font-family: serif;
  text-align: center;
}

/* Alt Başlık */
.countdown-subtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  opacity: 0.8;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* Sayılar Bölümü */
.countdown-numbers-section {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: rgba(20, 30, 20, 0.4);
  padding: 30px 45px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-size: 56px;
  font-weight: 300;
  font-family: serif;
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.countdown-separator {
  font-size: 40px;
  font-weight: 300;
  padding-bottom: 25px;
  opacity: 0.7;
}

/* Scroll Down Button (Glassmorphism) */
#scrollDownBtn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

#scrollDownBtn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) scale(1.1);
}

#scrollDownBtn span {
  display: inline-block;
  transform: rotate(90deg);
}

/* Sadece Scroll Butonu kalacak */

/* Responsive Tasarım */
/* Tablet */
@media (max-width: 1024px) {
  .countdown-wrapper {
    width: 80%;
    bottom: 25%;
  }
  .countdown-value {
    font-size: 46px;
  }
}

/* Mobil */
@media (max-width: 768px) {
  .countdown-wrapper {
    width: 90%;
    bottom: auto;
    /* Center it mostly vertically, slightly offset if needed */
    top: 45%;
    transform: translateY(-50%);
  }
  .countdown-container {
    padding: 20px 15px;
    gap: 15px;
    border-radius: 40px;
  }
  .countdown-wrapper {
    border-radius: 42px;
  }
  .countdown-numbers-section {
    padding: 15px 10px;
    gap: 10px;
  }
  .countdown-value {
    font-size: 28px;
  }
  .countdown-separator {
    font-size: 20px;
    padding-bottom: 10px;
  }
  .countdown-title {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .countdown-label {
    font-size: 10px;
  }
  #scrollDownBtn {
    bottom: 20vh; /* Ön kayıt butonunun üstünde durması için ekranın %20'si yüksekliğinde */
    width: 50px;
    height: 50px;
  }
}

/* Landscape Phones */
@media (max-height: 500px) and (orientation: landscape) {
  .countdown-wrapper {
    top: 45%;
    bottom: auto;
    transform: translateY(-50%) scale(0.55);
  }
  #scrollDownBtn {
    bottom: 5vh;
    transform: translateX(-50%) scale(0.8);
  }
}
