/* ============================================================
   Dedemspor Futbol Okulu — Premium Coming Soon
   Static deploy: upload all files to Hostinger public_html
   ============================================================ */

:root {
  /* Colors */
  --color-navy-950: #050b14;
  --color-navy-900: #0a1628;
  --color-navy-800: #0f2240;
  --color-navy-700: #153058;
  --color-royal-600: #1d4ed8;
  --color-royal-500: #2563eb;
  --color-royal-400: #3b82f6;
  --color-royal-300: #60a5fa;
  --color-field-600: #15803d;
  --color-field-500: #16a34a;
  --color-field-400: #22c55e;
  --color-field-300: #4ade80;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebe57;
  --color-instagram-start: #f58529;
  --color-instagram-mid: #dd2a7b;
  --color-instagram-end: #8134af;
  --color-white: #ffffff;
  --color-agca: #8ec8e8;
  --color-agca-hover: #b3ddf5;

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Oswald", system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Layout */
  --content-max: 42rem;
}

/* ─── Reset & Base ─── */

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

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-white);
  background: var(--color-navy-950);
  line-height: 1.6;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ─── Background ─── */
/* İskenderun futbol okulu için premium futbol sahası arka planı */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--color-navy-950);
  background-image: url("assets/dedemspor-hero-bg.webp");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.page-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 11, 20, 0.82) 0%,
      rgba(5, 11, 20, 0.5) 30%,
      rgba(5, 11, 20, 0.45) 55%,
      rgba(5, 11, 20, 0.65) 80%,
      rgba(5, 11, 20, 0.88) 100%
    ),
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(10, 22, 40, 0.15) 0%, rgba(5, 11, 20, 0.55) 100%);
}

/* ─── Header ─── */

.site-header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: clamp(0.625rem, 2vh, 1.125rem) var(--space-md) clamp(0.125rem, 0.5vh, 0.375rem);
  animation: fade-down 0.8s ease backwards;
}

.logo-bar {
  display: inline-flex;
  background: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-bar:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.625rem, 1.8vw, 1.125rem);
}

.logo-divider {
  flex-shrink: 0;
  width: 1px;
  height: clamp(3rem, 10vh, 5.5rem);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
}

.logo {
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.5));
}

.logo--partner,
.logo--main {
  width: clamp(4.25rem, 13.5vh, 8.5rem);
  height: clamp(4.25rem, 13.5vh, 8.5rem);
}

/* ─── Hero ─── */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 var(--space-lg);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2.2vh, 1.25rem);
  flex-shrink: 1;
  min-height: 0;
  padding-top: clamp(0.625rem, 2.5vh, 1.75rem);
  animation: fade-up 0.7s ease 0.05s backwards;
}

.hero__actions {
  animation: fade-up 0.7s ease 0.28s backwards;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 0;
  padding: clamp(0.35rem, 1vh, 0.55rem) clamp(0.875rem, 2.2vw, 1.375rem);
  font-size: clamp(0.625rem, 1.6vh, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-royal-300);
  background: rgba(5, 11, 20, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.hero__status-dot {
  position: relative;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-field-400);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero__status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.4);
  animation: pulse-ring 2.5s ease-out infinite;
}

.hero__sponsor {
  font-family: var(--font-display);
  font-size: clamp(0.625rem, 1.65vh, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  position: relative;
}

.hero__sponsor::before,
.hero__sponsor::after {
  content: "";
  display: block;
  width: min(4rem, 12vw);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.hero__sponsor::before {
  margin-bottom: 0.5rem;
}

.hero__sponsor::after {
  margin-top: 0.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.8vh, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(37, 99, 235, 0.18);
}

.hero__location {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2.4vh, 1.375rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-royal-300);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  margin-top: 0;
  font-size: clamp(0.75rem, 1.9vh, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.76);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

/* ─── CTA Buttons ─── */

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.375rem, 1vh, 0.5rem);
  flex-shrink: 0;
  margin-top: auto;
  padding-top: clamp(0.5rem, 2vh, 2rem);
  padding-bottom: clamp(0.25rem, 1vh, 0.75rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.45rem, 1.1vh, 0.625rem) clamp(0.875rem, 2vw, 1.125rem);
  min-height: clamp(2.125rem, 5vh, 2.5rem);
  font-family: var(--font-body);
  font-size: clamp(0.6875rem, 1.6vh, 0.8125rem);
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn--whatsapp {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-hover) 100%);
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--whatsapp:hover {
  background: linear-gradient(135deg, #2ee072 0%, var(--color-whatsapp) 100%);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--instagram {
  color: var(--color-white);
  background: linear-gradient(
    135deg,
    var(--color-instagram-start) 0%,
    var(--color-instagram-mid) 52%,
    var(--color-instagram-end) 100%
  );
  border: none;
  box-shadow:
    0 4px 20px rgba(221, 42, 123, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--instagram:hover {
  background: linear-gradient(135deg, #f77737 0%, #e4405f 52%, #9333ea 100%);
  box-shadow:
    0 8px 28px rgba(221, 42, 123, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ─── Footer ─── */

.site-footer {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  padding: clamp(0.4rem, 1.2vh, 0.75rem) var(--space-md);
  padding-bottom: calc(clamp(0.4rem, 1.2vh, 0.75rem) + env(safe-area-inset-bottom, 0));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent 0%, rgba(5, 11, 20, 0.9) 100%);
  animation: fade-up 0.7s ease 0.36s backwards;
}

.site-footer__copy,
.site-footer__credit {
  font-size: clamp(0.5625rem, 1.3vh, 0.6875rem);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.45;
}

.site-footer__credit {
  margin-top: 0.2rem;
}

.site-footer__credit a {
  color: var(--color-agca);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(142, 200, 232, 0.3);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer__credit a:hover {
  color: var(--color-agca-hover);
  text-shadow: 0 0 18px rgba(179, 221, 245, 0.45);
}

/* ─── Background Music ─── */

.bg-music {
  display: none;
}

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 11, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.music-toggle:hover {
  background: rgba(15, 34, 64, 0.85);
  border-color: rgba(96, 165, 250, 0.35);
  transform: scale(1.05);
}

.music-toggle.is-playing {
  color: var(--color-royal-300);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.25);
}

.music-toggle__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.music-toggle__icon--on {
  display: none;
}

.music-toggle__icon--off {
  display: block;
}

.music-toggle.is-playing .music-toggle__icon--on {
  display: block;
}

.music-toggle.is-playing .music-toggle__icon--off {
  display: none;
}

/* ─── Animations ─── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ─── Responsive ─── */

/* Mobile — portrait background */
@media (max-width: 767px) {
  .page-bg {
    background-image: url("assets/dedemspor-hero-bg-mobile.webp");
    background-position: center 18%;
  }

  .page-bg__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(5, 11, 20, 0.92) 0%,
        rgba(5, 11, 20, 0.6) 20%,
        rgba(5, 11, 20, 0.35) 42%,
        rgba(5, 11, 20, 0.55) 70%,
        rgba(5, 11, 20, 0.88) 100%
      ),
      radial-gradient(ellipse 100% 60% at 50% 22%, rgba(10, 22, 40, 0.2) 0%, transparent 70%);
  }

  .hero {
    padding: 0 var(--space-md);
  }

  .hero__subtitle {
    max-width: 18rem;
  }

  .hero__actions {
    width: 100%;
    max-width: 15rem;
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hero__actions {
    max-width: 17rem;
  }
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: none;
  }

  .btn {
    width: auto;
    min-width: 9.5rem;
  }
}

@media (min-width: 768px) {
  .page-bg {
    background-position: center 28%;
  }

  .page-bg__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(5, 11, 20, 0.85) 0%,
        rgba(5, 11, 20, 0.45) 28%,
        rgba(5, 11, 20, 0.3) 50%,
        rgba(5, 11, 20, 0.55) 75%,
        rgba(5, 11, 20, 0.88) 100%
      ),
      radial-gradient(ellipse 80% 55% at 50% 25%, rgba(10, 22, 40, 0.15) 0%, transparent 65%);
  }

  .hero {
    padding: 0 var(--space-xl);
  }

  .hero__content {
    gap: clamp(0.875rem, 2.4vh, 1.375rem);
    padding-top: clamp(0.75rem, 2.8vh, 2rem);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    letter-spacing: 0.06em;
  }

  .page-bg {
    background-position: center 26%;
  }

  .hero__subtitle {
    max-width: 26rem;
  }

  .btn {
    min-width: 10.5rem;
  }
}

/* Short viewports — extra compression (landscape phones, small screens) */
@media (max-height: 700px) {
  .logo--partner,
  .logo--main {
    width: clamp(3.5rem, 11vh, 5.5rem);
    height: clamp(3.5rem, 11vh, 5.5rem);
  }

  .logo-divider {
    height: clamp(2.25rem, 7vh, 4rem);
  }

  .hero__content {
    gap: clamp(0.5rem, 1.5vh, 0.875rem);
    padding-top: clamp(0.375rem, 1.5vh, 1rem);
  }

  .hero__sponsor {
    font-size: clamp(0.5625rem, 1.4vh, 0.75rem);
    letter-spacing: 0.12em;
  }

  .hero__sponsor::before,
  .hero__sponsor::after {
    width: min(2.5rem, 10vw);
  }

  .hero__title {
    font-size: clamp(1.125rem, 4.2vh, 2rem);
  }

  .hero__location {
    font-size: clamp(0.75rem, 2vh, 1.125rem);
  }

  .hero__subtitle {
    font-size: clamp(0.6875rem, 1.7vh, 0.875rem);
    line-height: 1.5;
  }

  .hero__actions {
    padding-top: clamp(0.25rem, 1vh, 0.75rem);
    padding-bottom: 0.125rem;
  }

  .site-footer__copy,
  .site-footer__credit {
    line-height: 1.35;
  }
}

@media (max-height: 580px) {
  .hero__content {
    gap: 0.375rem;
    padding-top: 0.25rem;
  }

  .hero__status {
    padding: 0.25rem 0.625rem;
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
  }

  .hero__subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
