/* ==========================================================================
   MoodSheet — Paylaşılan Stil Dosyası
   index.html, privacy/, support/, term/ sayfalarının HEPSİ bu dosyayı kullanır.
   WishNote sitesinin iskeleti (header, dil/tema toggle, kartlar, SSS, footer)
   birebir korunuyor; sadece palet uygulamanın kendi renk token'larına
   (Colors.swift: appBackground/appCard/appCell/appText) ve duygu renklerine
   (Mood.swift) çekildi. Palet/tipografiyi TEK yerden değiştirmek için :root'a dokun.
   ========================================================================== */

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

:root {
    /* Uygulamanın nötr token'ları (Colors.swift) */
    --bg: #F8F3EE;            /* appBackground */
    --card: #FFFFFF;          /* appCard */
    --cell: #EDE6E0;          /* appCell — takvimde boş hücre */
    --ink: #402F27;           /* appText */
    --ink-secondary: #7A6A62; /* appSecondaryText */
    --border: #E6DDD5;
    /* Düz (flat) marka vurgusu: uygulamadaki tab tint'i gibi koyu kahve. */
    --action: #402F27;
    --on-action: #F8F3EE;
    --action-tint: rgba(64, 47, 39, 0.07);

    /* Duygu renkleri (Mood.swift, Light): zemin / daire / yüz */
    --bg-love: #F0ACB2;     --circle-love: #F0CACD;     --ink-love: #7D343A;
    --bg-joyful: #FFE165;   --circle-joyful: #FFF1B8;   --ink-joyful: #71611E;
    --bg-cheerful: #FFB24E; --circle-cheerful: #FFCC89; --ink-cheerful: #6C4513;
    --bg-content: #94CC99;  --circle-content: #BFE1C2;  --ink-content: #19561E;
    --bg-calm: #65D0FF;     --circle-calm: #B7DAF5;     --ink-calm: #135674;
    --bg-angry: #FF8065;    --circle-angry: #FFBD9F;    --ink-angry: #5B2D24;
    --bg-sad: #B2BEB5;      --circle-sad: #C7D2CA;      --ink-sad: #424C44;
}

/* ÖNEMLİ — Karanlık mod: aynı değişken isimleri html.dark altında YENİDEN
   tanımlanıyor, geri kalan TÜM kurallar zaten var(--bg) vb. kullandığı için
   ekstra hiçbir kural yazmaya gerek yok — script.js sadece <html> etiketine
   .dark class'ı ekleyip çıkarıyor, kademe (cascade) gerisini hallediyor. */
html.dark {
    --bg: #1C1A19;
    --card: #2A2725;
    --cell: #242120;
    --ink: #F2EAE4;
    --ink-secondary: #B8AAA2;
    --border: #3A3532;
    --action: #F2EAE4;
    --on-action: #1C1A19;
    --action-tint: rgba(242, 234, 228, 0.09);

    /* Duygu renkleri (Mood.swift, Dark) */
    --bg-love: #423133;     --circle-love: #5C4749;     --ink-love: #F2CCD0;
    --bg-joyful: #423B1E;   --circle-joyful: #5C532F;   --ink-joyful: #F2E3A2;
    --bg-cheerful: #42321E; --circle-cheerful: #5C4629; --ink-cheerful: #F2CA96;
    --bg-content: #324233;  --circle-content: #485C49;  --ink-content: #CEF2D1;
    --bg-calm: #1E3742;     --circle-calm: #2F4E5C;     --ink-calm: #A2DAF2;
    --bg-angry: #42251E;    --circle-angry: #5C372F;    --ink-angry: #F2B0A2;
    --bg-sad: #3E423F;      --circle-sad: #575C58;      --ink-sad: #EAF2EC;
}

a { color: inherit; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    transition: background-color 0.2s, color 0.2s;
}

/* ==========================================================================
   Dil değiştirme (TÜM sayfalarda ortak) — script.js localStorage'a yazıp
   sayfa geçişlerinde de dil seçimini hatırlıyor.
   ÖNEMLİ — SADE METİN: eskiden dolgulu bir "pill" kutusuydu (İngilizce
   yazıyordu, hep göze çarpıyordu) — kullanıcı isteğiyle arka plan kaldırıldı,
   sadece "EN / TR" kısa kodları kaldı, aktif olan action renginde/kalın.
   ========================================================================== */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn {
    padding: 4px 2px;
    border: none;
    background: transparent;
    color: var(--ink-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}
.lang-btn.active {
    color: var(--ink);
    font-weight: 700;
}
.lang-btn:hover:not(.active) { color: var(--ink); }
.lang-sep {
    color: var(--border);
    font-size: 12px;
}

.content { display: none; }
.content.active { display: block; }

/* ==========================================================================
   Üst gezinme — TÜM sayfalarda ortak, sticky (kaydırınca üstte sabit kalır)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s, border-color 0.2s;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: var(--ink);
}
.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: block;
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Tema (açık/koyu) toggle — güneş/ay ikonu, tek buton.
   ÖNEMLİ — İKİ İKON DA HTML'DE VAR, CSS SEÇİYOR: JS'in class değiştirmesine
   gerek yok, sadece html.dark class'ı eklenince görünürlük CSS'te dönüyor —
   daha az JS, daha az hata ihtimali. */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--ink-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
    background-color: var(--card);
    color: var(--ink);
}
.theme-toggle .fa-moon { display: none; }
html.dark .theme-toggle .fa-sun { display: none; }
html.dark .theme-toggle .fa-moon { display: inline-block; }

/* ==========================================================================
   Hero — SADECE index.html
   ========================================================================== */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}
.hero h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1px;
    max-width: 680px;
    line-height: 1.18;
}
.hero .subhead {
    font-size: 18px;
    color: var(--ink-secondary);
    max-width: 560px;
}
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--action);
    color: var(--on-action);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.app-store-badge:hover { opacity: 0.88; }
.trust-line {
    font-size: 13px;
    color: var(--ink-secondary);
}
/* Bölüm başlıkları — features + pricing ortak */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--ink-secondary);
    font-size: 15px;
    max-width: 480px;
    margin: 10px auto 0;
}

/* Özellik kartları — SADECE index.html
   ÖNEMLİ — emoji yerine Font Awesome: emoji'lerin platforma göre değişen,
   birbiriyle uyumsuz renkleri ("dağınık" duruyordu) yerine artık tek marka
   rengiyle (action) çizilen ikonlar, yumuşak bir action-tonu rozet
   (.feature-icon-badge) içinde. */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.feature-card {
    background-color: var(--card);
    border-radius: 20px;
    padding: 28px;
}
.feature-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--action-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.feature-icon-badge i {
    color: var(--action);
    font-size: 17px;
}
.feature-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.feature-desc { font-size: 14px; color: var(--ink-secondary); }

/* ==========================================================================
   Yasal/destek sayfaları — privacy, term, support ORTAK gövde
   ÖNEMLİ — .header YOK ARTIK: eskiden "Privacy Policy" başlığı + dil
   toggle'ı burada, sayfaya özel bir satırdı. Şimdi dil toggle üstteki ortak
   .site-header'a taşındı, başlık da (.page-title) her .content bloğunun
   İÇİNE alındı — böylece TR'ye geçince başlık da "Gizlilik Politikası"
   olarak değişiyor (eskiden başlık HİÇ çevrilmiyordu, sabit İngilizceydi).
   ========================================================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}
p {
    margin-bottom: 12px;
    color: var(--ink-secondary);
    font-size: 15px;
}
ul, ol {
    margin-left: 20px;
    margin-bottom: 12px;
}
li {
    margin-bottom: 8px;
    color: var(--ink-secondary);
    font-size: 15px;
}
.meta {
    color: var(--ink-secondary);
    font-size: 13px;
    margin-bottom: 30px;
}
strong {
    color: var(--ink);
    font-weight: 600;
}
.container a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.container a:hover { opacity: 0.7; }
.highlight {
    background-color: var(--card);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--action);
    padding-left: 15px;
}

/* ==========================================================================
   Destek sayfası — SSS akordeonu (SADECE support/index.html)
   ÖNEMLİ — eski ▼ unicode karakteri KALDIRILDI: farklı sistemlerde
   tutarsız/pixelli görünüyordu. Artık .faq-chevron boş bir <span>,
   şeklini tamamen CSS ile (::before/::after, ince V çizgisi) çiziyoruz —
   her ekranda net, açılınca 180° dönerek modern bir "chevron" oluyor.
   ========================================================================== */
.faq-section { margin-bottom: 32px; }
.faq-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 4px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background-color: var(--card);
    border-radius: 14px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    gap: 12px;
    transition: background-color 0.15s;
}
.faq-question:hover { background-color: rgba(0,0,0,0.03); }
.faq-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
    transition: transform 0.25s ease;
}
.faq-chevron::before,
.faq-chevron::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 1.5px;
    border-radius: 1px;
    background-color: var(--ink-secondary);
}
.faq-chevron::before { left: 3px; transform: rotate(45deg); transform-origin: right center; }
.faq-chevron::after  { right: 3px; transform: rotate(-45deg); transform-origin: left center; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 20px 18px 20px;
    color: var(--ink-secondary);
    font-size: 15px;
    line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-answer a:hover { opacity: 0.7; }

.contact-box {
    background-color: var(--card);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 40px;
}
.contact-box p {
    color: var(--ink-secondary);
    font-size: 15px;
    margin-bottom: 16px;
}
.container a.contact-email { text-decoration: none; }
.contact-email {
    display: inline-block;
    background-color: var(--action);
    color: var(--on-action) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.85; }

/* ==========================================================================
   Footer — TÜM sayfalarda ortak. ÖNEMLİ — artık HER .content bloğunun
   İÇİNDE (dile göre kopyalı), böylece "Home/Anasayfa" gibi linkler de
   diğerleri gibi çevriliyor — eskiden footer .content'in DIŞINDaydı ve
   linkleri (Privacy/Terms/Support) hiç çevrilmiyordu.
   ========================================================================== */
.footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--ink-secondary);
}
/* privacy/term/support kendi .container'ı içinde footer kullanıyor —
   orada max-width tekrar sınırlamasın diye sıfırlıyoruz. */
.container .footer {
    max-width: none;
    margin-top: 60px;
    padding: 20px 0 0;
}
.footer-copyright { text-align: center; flex: 1; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: var(--ink-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero { padding: 44px 20px 16px; }
    .hero h1 { font-size: 32px; }
    .hero .subhead { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-inner { padding: 14px 20px; }
    .container { padding: 30px 16px; }
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 28px 20px;
    }
    .footer-links { justify-content: center; width: 100%; }
}


/* ==========================================================================
   MoodSheet'e özel bölümler (SADECE index.html)
   ========================================================================== */

/* Duygu → renk sınıfları. Değişkenler :root'ta (Light) ve html.dark'ta (Dark)
   tanımlı; bu sınıflar sadece o duygunun üç rengini yerel değişkenlere bağlar. */
.m-love    { --bg-m: var(--bg-love);     --c: var(--circle-love);     --k: var(--ink-love); }
.m-joyful  { --bg-m: var(--bg-joyful);   --c: var(--circle-joyful);   --k: var(--ink-joyful); }
.m-cheerful{ --bg-m: var(--bg-cheerful); --c: var(--circle-cheerful); --k: var(--ink-cheerful); }
.m-content { --bg-m: var(--bg-content);  --c: var(--circle-content);  --k: var(--ink-content); }
.m-calm    { --bg-m: var(--bg-calm);     --c: var(--circle-calm);     --k: var(--ink-calm); }
.m-angry   { --bg-m: var(--bg-angry);    --c: var(--circle-angry);    --k: var(--ink-angry); }
.m-sad     { --bg-m: var(--bg-sad);      --c: var(--circle-sad);      --k: var(--ink-sad); }

/* Hero: yedi duygu "ekranı" yan yana. Her kutu uygulamanın Mood ekranının
   minik kopyası: duygunun zemini + soluk daire + koyu yüz. Yüzler uygulamadaki
   aynı SVG'ler; stroke="currentColor" ile --k rengini alıyor. */
.mood-row {
    --tile: 112px;
    margin-top: 44px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.mood-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mood-tile {
    --s: calc(var(--tile) * 0.66);
    --u: calc(var(--s) / 200);
    width: var(--tile);
    height: var(--tile);
    border-radius: calc(var(--tile) * 0.22);
    background-color: var(--bg-m);
    display: grid;
    place-items: center;
    transition: background-color 0.2s;
}
.face-circle {
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background-color: var(--c);
    color: var(--k);
    display: grid;
    place-items: center;
    transition: background-color 0.2s, color 0.2s;
}
.face-circle svg { display: block; }
.mood-name { font-size: 13px; font-weight: 600; color: var(--ink-secondary); }

/* Henüz yayında olmayan App Store butonu: tıklanmaz, soluk. Yayınlanınca
   <span class="app-store-badge disabled"> yerine <a class="app-store-badge" href="..."> konur. */
.app-store-badge.disabled { opacity: 0.55; cursor: default; user-select: none; }
.app-store-badge.disabled:hover { opacity: 0.55; }

/* Önizleme kartları: takvim + pasta. Uygulamanın gerçek ekranı değil, aynı
   dilde çizilmiş düz (flat) örnekler; ekran görüntüleri hazır olunca
   yerlerine konabilir. */
.preview { max-width: 1100px; margin: 0 auto; padding: 56px 24px 24px; }
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.preview-card { background-color: var(--card); border-radius: 20px; padding: 28px; }
.preview-label { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.preview-note { font-size: 14px; color: var(--ink-secondary); margin-bottom: 18px; }

.cal-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--ink-secondary); padding-bottom: 2px; }
.cal-cell {
    aspect-ratio: 1;
    border-radius: 9px;
    background-color: var(--cell);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--ink);
}
.cal-cell.mood { background-color: var(--c); }
.cal-cell.out { opacity: 0.45; }
.cal-cell.future { opacity: 0.4; }
.cal-cell.today { background-color: var(--bg); font-weight: 700; outline: 1.5px solid var(--border); }

.donut-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto 22px; }
.donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle at center, transparent 56%, #000 57%);
            mask: radial-gradient(circle at center, transparent 56%, #000 57%);
}
.donut-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.donut-label b { font-size: 26px; font-weight: 700; }
.donut-label span { font-size: 12px; color: var(--ink-secondary); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background-color: var(--c); flex-shrink: 0; }
.legend em { margin-left: auto; font-style: normal; color: var(--ink-secondary); }

/* "Bir kez öde" bölümü */
.pricing { max-width: 760px; margin: 0 auto; padding: 64px 24px 100px; text-align: center; }
.once-list {
    list-style: none;
    margin: 32px auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    text-align: left;
}
.once-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 18px;
    background-color: var(--card);
    border-radius: 14px;
    color: var(--ink);
    font-size: 15px;
}
.once-list i { color: var(--ink); font-size: 14px; width: 18px; text-align: center; }
.pricing-footnote { margin-top: 24px; font-size: 12px; color: var(--ink-secondary); text-align: center; }

@media (max-width: 900px) {
    .mood-row { --tile: 88px; gap: 12px; }
    .preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .mood-row { --tile: 68px; gap: 10px; margin-top: 32px; }
    .mood-name { font-size: 11px; }
    .preview-card { padding: 22px; }
}
