/* DreamOnGames — site styles */

/* ---------- Fonts (kendi sunucumuzdan, Google'a bağlantı yok) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

/* ---------- Renkler ve temel değerler ---------- */
:root {
  --bg: #fcfaff;
  --bg-alt: #f3eefc;
  --surface: #ffffff;
  --text: #231d36;
  --muted: #5f5775;
  --primary: #7a5bb5;
  --primary-dark: #604596;
  --lavender: #e6dcfa;
  --sky: #d9e8fb;
  --butter: #fdeeb4;
  --star: #fbe08a;
  --border: #e8e0f5;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(74, 56, 120, 0.10);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--primary); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 740px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800;
  color: var(--primary); margin-bottom: 0.7em;
}

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240, 234, 252, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 91, 181, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { width: 40px; height: 40px; display: block; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }

/* ---------- Butonlar ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.center-row { justify-content: center; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(122, 91, 181, 0.30); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.75); color: var(--text); border: 2px solid rgba(122, 91, 181, 0.18); }
.btn-ghost:hover { background: #fff; }

/* ---------- Hero: pastel gece gökyüzü ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 64px 0 150px;
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(180deg, #e6dcfa 0%, #e3e6fb 45%, #e6effc 75%, #fbf1ea 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; }
.hero-art { justify-self: center; }
.hero-art img { display: block; width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 18px 30px rgba(74, 56, 120, 0.12)); }

/* yıldızlar (logodaki dört köşeli yıldızlar gibi) */
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.spark { position: absolute; width: 22px; height: 22px; fill: var(--star); stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; animation: twinkle 4s ease-in-out infinite; }
.s1 { top: 14%; left: 4%; width: 18px; height: 18px; animation-delay: 0s; }
.s2 { top: 9%; left: 46%; width: 14px; height: 14px; animation-delay: 1.2s; }
.s3 { top: 84%; left: 50%; width: 20px; height: 20px; animation-delay: 2.1s; }
.s4 { top: 12%; right: 5%; width: 24px; height: 24px; animation-delay: 0.6s; }
.s5 { top: 86%; left: 3%; width: 13px; height: 13px; animation-delay: 2.8s; }
.dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(251, 224, 138, 0.9); animation: twinkle 3.2s ease-in-out infinite; }
.d1 { top: 22%; left: 28%; animation-delay: .4s; }
.d2 { top: 40%; left: 52%; animation-delay: 1.5s; }
.d3 { top: 30%; right: 22%; animation-delay: 2.4s; }
.d4 { top: 80%; right: 12%; animation-delay: .9s; }
.d5 { top: 52%; left: 2%; animation-delay: 1.9s; }
.d6 { top: 6%; left: 70%; animation-delay: 2.9s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* bulut kenarı */
.cloud-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 1; display: block; }
.c-back { fill: #ffffff; opacity: 0.55; }
.c-front { fill: var(--bg); }

/* ---------- Bölümler ---------- */
.section { padding: 72px 0; }
.section-tight { padding-top: 40px; }
.section-alt { background: var(--bg-alt); border-radius: 40px; margin: 0 12px; }
#about p:not(.eyebrow) { font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); margin: 0; }
.card h3 {
  font-style: italic; font-weight: 500; color: var(--primary);
  font-size: clamp(1.7rem, 2.6vw, 2rem); margin-bottom: 0.4em;
}

.cta-panel {
  text-align: center; padding: 52px 24px; border-radius: 36px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--sky) 60%, #fbf1ea 100%);
}
.cta-panel p { color: var(--muted); max-width: 32em; margin-left: auto; margin-right: auto; }
.cta-moon { width: 64px; height: 64px; display: block; margin: 0 auto 10px; }


/* ---------- Hakkımızda: pastel gökyüzü ve bulutlar ---------- */
.about-section {
  padding: 130px 0 140px;
  background: var(--bg) url("about-sky.webp") center / 100% 100% no-repeat;
}
.about-section .narrow { max-width: 660px; }

/* ---------- Oyun galerisi ---------- */
.section-intro { max-width: 34em; margin: 0 auto; }
.games {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px;
  margin: 40px auto 0; max-width: 940px;
}
.game { display: block; text-decoration: none; color: var(--text); text-align: center; }
.game-paper {
  display: block; background: #fff; padding: 8px; border-radius: 8px;
  box-shadow: 0 2px 4px rgba(35, 29, 54, 0.06), 0 16px 32px rgba(74, 56, 120, 0.14);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-paper img { display: block; width: 100%; height: auto; border-radius: 4px; }
.game:nth-child(3n+1) .game-paper { transform: rotate(-2deg); }
.game:nth-child(3n+2) .game-paper { transform: rotate(1.2deg) translateY(10px); }
.game:nth-child(3n+3) .game-paper { transform: rotate(-0.8deg); }
.game:hover .game-paper, .game:focus-visible .game-paper {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 2px 4px rgba(35, 29, 54, 0.06), 0 24px 44px rgba(74, 56, 120, 0.22);
}
.game-title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-top: 18px; }
.game:nth-child(3n+2) .game-title { margin-top: 28px; }
.game-tag { display: block; color: var(--muted); font-size: 0.92rem; }
.games-more { margin-top: 44px; }

/* ---------- Gizlilik sayfası ---------- */
.page-head {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, #e6dcfa 0%, #e6effc 100%);
}
.page-head h1 { margin-bottom: 0.2em; }
.page-head .muted { margin: 0; }
.policy h2 { font-size: 1.45rem; margin-top: 1.8em; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: 0.45em; }
.policy-summary {
  background: var(--bg-alt); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0 8px;
}
.policy-summary h2 { margin-top: 0; font-size: 1.25rem; }
.policy-summary ul { margin-bottom: 0; }

/* ---------- Alt bilgi ---------- */
.site-footer { padding: 30px 0; font-size: 0.95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 26px; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hero { padding: 36px 0 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 330px; }
  .cards { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .game:nth-child(n) .game-paper { transform: rotate(0); }
  .game:nth-child(odd) .game-paper { transform: rotate(-1.2deg); }
  .game:nth-child(even) .game-paper { transform: rotate(1deg); }
  .game:nth-child(n) .game-title { margin-top: 14px; font-size: 1.05rem; }
  .about-section { padding: 90px 0 100px; background-size: 260% 100%; }
  .section-alt { margin: 0 8px; border-radius: 28px; }
}
@media (max-width: 520px) {
  .nav { gap: 14px; }
  .nav a[href="#games"], .nav a[href="index.html#games"] { display: none; }
  .brand-name { font-size: 1.15rem; }
  .s1, .s3, .s5, .d2, .d5 { display: none; }
  .cta-row .btn { text-align: center; padding-left: 16px; padding-right: 16px; }
  .cta-row .btn-primary { flex-basis: 100%; }
  .cta-row .btn-ghost { flex: 1; }
}

/* Hareket istemeyen kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  .spark, .dot { animation: none; }
  .btn, .card, .game-paper { transition: none; }
}
