/* ==========================================================================
   15 Dilde Peygamber'in İzinde - Modern Shared Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@600;700;800;900&family=Fredoka:wght@400;500;600;700;800;900&family=Lilita+One&family=Patrick+Hand&family=Cairo:wght@600;700&family=Heebo:wght@500;700&display=swap');

:root {
  --primary-color: #f59e0b;
  --primary-hover: #d97706;
  --accent-color: #10b981;
  --sky-blue: #38bdf8;
  --night-bg: #07111e;
  --card-bg: rgba(13, 27, 42, 0.85);
  --card-border: rgba(255, 255, 255, 0.15);
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --font-child: 'Fredoka', 'Patrick Hand', cursive, sans-serif;
  --font-story: 'Patrick Hand', 'Fredoka', cursive, sans-serif;
  --header-height: 64px;
  --border-radius-lg: 20px;
  --border-radius-md: 14px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.4);
}

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

html, body {
  min-height: 100%;
  font-family: var(--font-child);
  color: var(--text-main);
  background-color: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Top Navigation Bar (Üst Menü)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 17, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background 0.3s ease;
}

.site-header .nav-left,
.site-header .nav-right,
.site-header .nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-logo-link:hover {
  transform: scale(1.04);
}

.site-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Home button */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef08a;
  transform: translateY(-1px);
}

/* Language Switcher Dropdown */
.lang-switcher-wrap {
  position: relative;
}

.lang-current-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-current-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(217, 119, 6, 0.5));
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.lang-current-btn .arrow-icon {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.lang-switcher-wrap.open .arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
  background: #0f1c2e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  z-index: 1010;
  animation: dropdownFadeIn 0.2s ease forwards;
}

.lang-switcher-wrap.open .lang-dropdown-menu {
  display: grid;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.lang-option-item:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
  padding-left: 16px;
}

.lang-option-item.active {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
}

.lang-badge {
  font-size: 12px;
  opacity: 0.75;
}

/* Audio Player Button */
.audio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.audio-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
}

.audio-toggle-btn.playing {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

/* Sound wave equalizer animation */
.sound-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.sound-waves span {
  display: block;
  width: 3px;
  height: 100%;
  background-color: #10b981;
  border-radius: 2px;
  transform-origin: bottom;
  animation: soundWave 1s ease-in-out infinite;
}

.sound-waves span:nth-child(1) { animation-delay: 0.1s; }
.sound-waves span:nth-child(2) { animation-delay: 0.3s; }
.sound-waves span:nth-child(3) { animation-delay: 0.2s; }
.sound-waves span:nth-child(4) { animation-delay: 0.4s; }

.audio-toggle-btn:not(.playing) .sound-waves span {
  animation: none;
  height: 3px;
  background-color: #94a3b8;
}

@keyframes soundWave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* Social icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.social-icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.1);
}

/* Footer (Fixed at the very bottom) */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(7, 17, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  text-align: center;
  font-family: var(--font-story);
  font-size: 14px;
  color: #94a3b8;
  z-index: 100;
}

.site-footer a {
  color: #f59e0b;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fde047;
  text-decoration: underline;
}

/* Responsive adjustments for header */
@media (max-width: 900px) {
  .site-header {
    padding: 0 12px;
  }
  .social-links {
    display: none;
  }
  .site-logo-img {
    height: 36px;
  }
  .nav-btn {
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
  }
  .nav-btn span {
    display: inline-block;
  }
  .audio-toggle-btn span.btn-text {
    display: none;
  }
  .audio-toggle-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 56px;
  }
  .site-logo-img {
    height: 30px;
  }
  .nav-btn {
    padding: 6px 10px;
    font-size: 13px;
    gap: 5px;
  }
  .nav-btn span {
    display: inline-block;
  }
  .lang-current-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .lang-dropdown-menu {
    width: 220px;
    right: -20px;
  }
}

@media (max-width: 390px) {
  .nav-btn span:last-child {
    display: none; /* Aşırı dar ekranlarda sadece metin gizlenir, 🌳 ikonu mutlaka görünür */
  }
  .nav-btn span:first-child {
    font-size: 16px;
  }
}

/* ==========================================================================
   Global Star Burst Particles Layer (Sihirli Yıldız Patlamaları)
   ========================================================================== */

.star-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.burst-particle {
  position: fixed;
  font-size: 22px;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
  animation: burstFly 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.95));
}

@keyframes burstFly {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--dest-x), var(--dest-y)) scale(var(--dest-scale)) rotate(var(--dest-rot));
    opacity: 0;
  }
}
