/*
  ===========================
  VALDEN - FINAL RESPONSIVE EDITION
  ===========================
*/

/* 1. GLOBAL & RESET STYLES */
:root {
  --font-main: 'Cormorant Garamond', serif;
  --color-text: #FFFFFF;
  --color-bar-base: rgba(42, 42, 42, 0.7);
  --color-bar-gleam: #f5f5f5;
  --color-shadow: rgba(0, 0, 0, 0.5);
  --frame-padding: 20px;
  --whatsapp-green: #25D366;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body {
  position: relative;
  font-family: var(--font-main);
  background-color: #050505;
}

/* 2. BACKGROUND ELEMENTS */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: blur(5px) brightness(0.6);
  transform: scale(1.1);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
}

body::before {
  content: '';
  position: absolute;
  top: var(--frame-padding);
  left: var(--frame-padding);
  right: var(--frame-padding);
  bottom: var(--frame-padding);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  animation: 
    magicFrameGlow 5s ease-in-out infinite alternate,
    frameFadeIn 2s 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes frameFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes magicFrameGlow {
  from {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
  }
}

/* 3. LAYOUT & COMPONENTS */
main.coming-soon-main {
  position: relative;
  z-index: 3;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: contentFadeIn 1.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentFadeIn { from { opacity: 0; } to { opacity: 1; } }

section.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
}

/* --- WHATSAPP ICON STYLES (DÜZELTİLDİ) --- */
.whatsapp-link {
  display: block;
  margin-bottom: 40px; 
  z-index: 5;
  color: var(--color-text); /* SVG'nin rengi bu satırdan gelir */
  transition: color 0.3s ease; /* Renk değişimi için yumuşak geçiş */
}

.whatsapp-link:visited {
  color: var(--color-text);
}

.whatsapp-link svg {
  width: 50px;
  height: 50px;
  /* DÜZELTME: fill kaldırıldı, renk artık parent'tan (currentColor) alınıyor */
  transition: transform 0.3s ease; /* Sadece transform için geçiş */
  animation: whatsappJitter 0.8s infinite linear;
}

/* DÜZELTME: Hover efekti linkin kendisine uygulandı */
.whatsapp-link:hover {
  color: var(--whatsapp-green); /* Rengi yeşile çevir */
}

.whatsapp-link:hover svg {
  transform: scale(1.25); 
  animation-play-state: paused;
}

@keyframes whatsappJitter {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(4deg); }
  50% { transform: rotate(-4deg); }
  75% { transform: rotate(2deg); }
}


.logo-img {
  display: block;
  max-width: 380px;
  width: 90vw;
  height: auto;
  animation: logoBreath 8s ease-in-out infinite alternate;
  transform: scale(1.55);
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
}

@keyframes logoBreath {
  from { transform: scale(1.35); }
  to   { transform: scale(1.42); }
}

.loading-bar-outer {
  position: relative;
  width: 300px;
  max-width: 90vw;
  height: 4px;
  background: var(--color-bar-base);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 60px;
  box-shadow: 0 4px 15px var(--color-shadow);
}

.loading-bar-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-bar-gleam), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-percentage {
  position: relative;
  z-index: 5;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-text);
  text-align: center;
  margin: 20px 0 25px 0;
  letter-spacing: 0.03em;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 25px;
  border-radius: 8px;
}

.coming-soon-text {
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--color-text);
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
  user-select: none;
}

/* 4. RESPONSIVE DESIGN (MOBİL GÖRÜNÜM İYİLEŞTİRMELERİ) */

@media (max-width: 480px) {
  :root {
    --frame-padding: 15px;
  }
  
  section.coming-soon-section {
    gap: 20px;
  }
  
  .whatsapp-link {
    margin-bottom: 0;
  }

  .whatsapp-link svg {
    width: 45px;
    height: 45px;
  }

  .logo-img {
    transform: none; 
    width: 85vw;
    max-width: 300px;
    animation: none; 
  }

  .loading-bar-outer {
    width: 240px;
    margin-top: 0;
  }

  .loading-percentage, .coming-soon-text {
    font-size: 1.1rem;
  }
  
  .loading-percentage {
    margin: 0;
    padding: 8px 20px;
  }
}
