/*
Theme Name: Tatlı Rüyalar
Theme URI: https://tatliruyalar.app
Author: Kayrus Tech
Author URI: https://tatliruyalar.app
Description: Bebek ve çocuklar için ninni & masal uygulaması "Tatlı Rüyalar" landing page teması. Uygulamanın sıcak krem/turuncu tasarım dilini taşıyan, modern tek sayfalık tanıtım teması.
Version: 2.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tatli-ruyalar
Tags: one-column, custom-menu, custom-logo, landing-page
*/

/* ==========================================================================
   Değişkenler — uygulamanın tasarım dilinden
   ========================================================================== */
:root {
  --bg: #fbf7f0;
  --bg-soft: #fff3e6;
  --surface: #ffffff;
  --ink: #2b2118;
  --ink-soft: #6d5f52;
  --ink-faint: #9c8d7e;
  --line: #f0e6d9;
  --orange: #f2914a;
  --orange-deep: #e07a2e;
  --orange-soft: #fde5cf;
  --sage: #d6e6dc;
  --sage-deep: #53625a;
  --lavender: #e7dbee;
  --lavender-deep: #645b6b;
  --brown: #725a47;
  --brown-dark: #2b221b;
  --cream-text: #f7f0e6;
  --shadow-sm: 0 2px 10px rgba(114, 90, 71, .07);
  --shadow-md: 0 14px 40px rgba(114, 90, 71, .12);
  --shadow-lg: 0 24px 60px rgba(114, 90, 71, .16);
  --radius: 20px;
  --radius-lg: 32px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;
}

/* ==========================================================================
   Temel
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }

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

a { color: var(--orange-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.section { padding: 104px 0; position: relative; }
.section.alt { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: var(--orange);
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}

/* Kaydırma animasyonu */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.site-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink);
}
.site-brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(140deg, var(--orange) 0%, var(--orange-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(224, 122, 46, .35);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }

.main-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; }
.main-nav a { color: var(--ink-soft); font-weight: 700; font-size: .94rem; }
.main-nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 11px 24px; border-radius: 999px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover {
  background: var(--brown) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none; background: none; border: none;
  color: var(--ink); cursor: pointer; padding: 6px;
}
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 88% 6%, rgba(253, 229, 207, .75) 0%, transparent 65%),
    radial-gradient(520px 380px at 6% 88%, rgba(214, 230, 220, .55) 0%, transparent 65%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--brown);
  padding: 8px 18px; border-radius: 999px;
  font-size: .86rem; font-weight: 700; margin-bottom: 26px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--orange-deep); }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.7rem);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 .highlight {
  color: var(--orange-deep);
  position: relative;
  white-space: nowrap;
}
.hero h1 .highlight svg {
  position: absolute; left: 0; bottom: -0.18em;
  width: 100%; height: .3em; color: var(--orange);
  opacity: .55;
}
.hero-sub {
  color: var(--ink-soft); font-size: 1.14rem;
  max-width: 480px; margin-bottom: 36px;
}

/* Mağaza rozetleri */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--ink); color: #fff;
  padding: 13px 26px 13px 20px; border-radius: 16px;
  line-height: 1.15;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.store-btn:hover {
  background: #000; color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small {
  display: block; font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; opacity: .75;
}
.store-btn .store-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }

/* Sosyal kanıt satırı */
.hero-proof {
  display: flex; align-items: center; gap: 14px;
  margin-top: 30px;
}
.proof-avatars { display: flex; }
.proof-avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #fff;
  margin-left: -10px;
}
.proof-avatars span:first-child { margin-left: 0; }
.proof-avatars span:nth-child(1) { background: var(--orange); }
.proof-avatars span:nth-child(2) { background: var(--sage-deep); }
.proof-avatars span:nth-child(3) { background: var(--lavender-deep); }
.proof-avatars span:nth-child(4) { background: var(--brown); }
.proof-text { font-size: .88rem; color: var(--ink-soft); }
.proof-text strong { color: var(--ink); display: block; font-size: .92rem; }
.proof-stars { color: var(--orange); letter-spacing: 1px; font-size: .85rem; }

/* Telefon — gerçek ekran görüntüsüyle */
.phone-wrap {
  display: flex; justify-content: center;
  position: relative;
}
.phone {
  width: 310px;
  border-radius: 46px;
  border: 11px solid var(--brown-dark);
  background: var(--brown-dark);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(43, 34, 27, .06);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.phone::before {
  content: ''; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 20px; border-radius: 999px;
  background: var(--brown-dark); z-index: 3;
}
.phone img { border-radius: 35px; }

/* Yüzen bilgi kartları */
.float-chip {
  position: absolute; z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 11px;
  animation: chip-float 5.5s ease-in-out infinite;
}
.float-chip .chip-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.float-chip .chip-icon svg { width: 20px; height: 20px; }
.float-chip strong { display: block; font-size: .84rem; letter-spacing: -0.01em; }
.float-chip span { font-size: .74rem; color: var(--ink-faint); font-weight: 600; }
.chip-timer { top: 14%; left: 0; }
.chip-timer .chip-icon { background: var(--orange-soft); color: var(--orange-deep); }
.chip-library { bottom: 12%; right: 0; animation-delay: 2.2s; }
.chip-library .chip-icon { background: var(--sage); color: var(--sage-deep); }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ==========================================================================
   İstatistik şeridi
   ========================================================================== */
.stats-band {
  background: var(--brown-dark);
  color: var(--cream-text);
  padding: 64px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { text-align: center; }
.stat-value {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: #fff;
}
.stat-value em { font-style: normal; color: var(--orange); }
.stat-label {
  color: rgba(247, 240, 230, .6);
  font-weight: 600; font-size: .9rem; margin-top: 4px;
}

/* ==========================================================================
   Özellikler
   ========================================================================== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card:nth-child(3n+1) .feature-icon { background: var(--orange-soft); color: var(--orange-deep); }
.feature-card:nth-child(3n+2) .feature-icon { background: var(--sage); color: var(--sage-deep); }
.feature-card:nth-child(3n)   .feature-icon { background: var(--lavender); color: var(--lavender-deep); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   Nasıl çalışır
   ========================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; counter-reset: step;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px 30px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute; top: 28px; right: 28px;
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em;
  color: var(--line);
  line-height: 1;
}
.step-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--orange-soft); color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step-icon svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* ==========================================================================
   Ekran görüntüleri
   ========================================================================== */
.screens-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; align-items: start;
}
.screen-card { margin: 0; }
.screen-frame {
  border-radius: 28px;
  border: 7px solid var(--brown-dark);
  background: var(--brown-dark);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.screen-frame img { border-radius: 20px; }
.screen-card:hover .screen-frame { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.screen-card:nth-child(even) { margin-top: 44px; }
.screen-card figcaption { margin-top: 20px; padding: 0 6px; }
.screen-title { display: block; font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.screen-desc { display: block; color: var(--ink-soft); font-size: .86rem; margin-top: 3px; }

/* ==========================================================================
   Yorumlar
   ========================================================================== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.testimonial-stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 16px; font-size: .95rem; }
.testimonial p {
  color: var(--ink); font-size: .98rem;
  margin-bottom: 24px; flex-grow: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 13px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff;
}
.testimonial:nth-child(1) .testimonial-avatar { background: var(--orange); }
.testimonial:nth-child(2) .testimonial-avatar { background: var(--sage-deep); }
.testimonial:nth-child(3) .testimonial-avatar { background: var(--lavender-deep); }
.testimonial-name { font-weight: 800; font-size: .92rem; letter-spacing: -0.01em; }
.testimonial-role { color: var(--ink-faint); font-size: .8rem; font-weight: 600; }

/* ==========================================================================
   SSS
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  padding: 22px 26px; cursor: pointer;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e07a2e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 26px 24px; color: var(--ink-soft); font-size: .96rem; max-width: 620px; }

/* ==========================================================================
   İndirme CTA
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 84px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-box::before,
.cta-box::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.cta-box::before { width: 340px; height: 340px; top: -170px; left: -110px; }
.cta-box::after { width: 260px; height: 260px; bottom: -140px; right: -80px; }
.cta-box h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: #fff; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cta-box p {
  color: rgba(255, 255, 255, .88);
  max-width: 460px; margin: 0 auto 36px;
  font-size: 1.06rem;
  position: relative; z-index: 1;
}
.cta-box .store-buttons { justify-content: center; position: relative; z-index: 1; }
.cta-box .store-btn { background: var(--brown-dark); }
.cta-box .store-btn:hover { background: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream-text);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 16px;
}
.footer-brand:hover { color: #fff; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-desc { color: rgba(247, 240, 230, .55); font-size: .93rem; max-width: 320px; }
.footer-col h4 {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247, 240, 230, .45);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(247, 240, 230, .8); font-size: .94rem; font-weight: 600; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(247, 240, 230, .12);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: rgba(247, 240, 230, .45); font-size: .85rem;
}

/* ==========================================================================
   İç sayfalar
   ========================================================================== */
.page-content-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 56px; margin: 72px auto; max-width: 840px;
}
.page-content-wrap h1 { margin-bottom: 28px; font-size: 2rem; }
.page-content-wrap p { margin-bottom: 18px; color: var(--ink-soft); }
.page-content-wrap h2, .page-content-wrap h3 { margin: 32px 0 14px; }
.page-content-wrap ul, .page-content-wrap ol { margin: 0 0 18px 24px; color: var(--ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-buttons, .hero-proof { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .chip-timer { left: -6px; }
  .chip-library { right: -6px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 24px 28px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
}

@media (max-width: 560px) {
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .screen-card:nth-child(even) { margin-top: 0; }
  .phone { width: 270px; }
  .float-chip { display: none; }
  .cta-box { padding: 64px 28px; }
  .page-content-wrap { padding: 36px 24px; }
}
