/* ==========================================================================
   Lustra sitesi — developer724.css temasının üstüne eklenenler.
   Yalnızca temanın değişkenleri kullanılır (--surface, --border, --blue …).
   ========================================================================== */

/* ---------- Başlık: marka simgesi, dil düğmesi ---------- */
.brand-logo {
    width: 26px;
    height: 26px;
    margin-right: 0.35rem;
    border-radius: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 560px) {
    .header-actions .store-btn {
        display: none;
    }
}

/* ---------- Metin: madde içinde satır içi öğeler, klavye ve kod ---------- */
/* Temada li flex kutusudur; <strong>/<code> içeren maddeler parçalanmasın diye akış düzenine alınır. */
.feature-list li {
    display: block;
    position: relative;
    padding-left: 1.2em;
}

.feature-list li::before {
    position: absolute;
    left: 0;
}

kbd {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.82em;
    line-height: 1.3;
    padding: 0.05em 0.45em;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--surface);
    color: var(--text);
    white-space: nowrap;
}

.site-main code {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.86em;
    padding: 0.1em 0.4em;
    border-radius: 5px;
    background: var(--surface-3);
    color: var(--purple);
    overflow-wrap: anywhere;
}

/* ---------- Hero ---------- */
.pillar-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--cyan);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.hero-shot {
    margin: 2.5rem auto 0;
    max-width: 1100px;
}

.hero-shot img,
.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg, var(--shadow));
    background: var(--surface);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.store-btn.is-soon {
    cursor: default;
    opacity: 0.8;
}

.store-btn.is-soon:hover {
    transform: none;
}

/* ---------- Ekran görüntüleri ---------- */
.shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shot figcaption {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.shot a {
    display: block;
    border-radius: 12px;
    cursor: zoom-in;
}

.shot a img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot a:hover img {
    transform: translateY(-2px);
}

/* ---------- Galeri (site.js) ---------- */
html.gallery-open {
    overflow: hidden;
}

.gallery {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 3.5rem 4.5rem 1.5rem;
    border: 0;
    background: transparent;
    color: #E2E8F0;
}

.gallery[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery::backdrop {
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(4px);
}

.gallery-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    max-width: 100%;
    max-height: 100%;
}

.gallery-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 9rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-figure figcaption {
    max-width: 70ch;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.55;
}

.gallery-count {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: #94A3B8;
    margin-right: 0.4rem;
}

.gallery-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #F1F5F9;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gallery-btn:hover {
    background: rgba(51, 65, 85, 0.9);
}

.gallery-btn:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

.gallery-btn svg {
    width: 22px;
    height: 22px;
}

.gallery-close {
    top: 1rem;
    right: 1rem;
}

.gallery-prev,
.gallery-next {
    top: 50%;
    transform: translateY(-50%);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

@media (max-width: 760px) {
    .gallery {
        padding: 3.5rem 0.75rem 5rem;
    }

    .gallery-prev,
    .gallery-next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .gallery-prev {
        left: calc(50% - 56px);
    }

    .gallery-next {
        right: calc(50% - 56px);
    }
}

/* ---------- Fiyat kartı ---------- */
.cards-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .cards-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

.plan-price {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

/* Öne çıkan (tek) fiyat kartı. */
.plan-pro {
    border-color: var(--border-glow);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.1);
}

.plan-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--grad);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.plan-note {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* ---------- CTA ---------- */
.cta-sub {
    margin: -0.75rem auto 1.5rem;
}

.cta-actions {
    justify-content: center;
}

/* ---------- İletişim formu ---------- */
.contact-form .btn {
    align-self: flex-start;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: var(--red);
}

.form-textarea {
    resize: vertical;
    min-height: 9rem;
    font-family: inherit;
}

.form-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-dim);
    cursor: pointer;
}

.form-check input {
    margin-top: 0.25rem;
    accent-color: var(--blue);
}

.form-alert {
    margin: 0 0 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

.form-alert.is-error {
    color: var(--red);
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.form-done h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.form-done p {
    color: var(--text-dim);
}

.form-done .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

a.channel-card {
    color: inherit;
    transition: border-color 0.25s ease;
}

a.channel-card:hover {
    border-color: var(--border-glow);
}

/* ---------- Hata sayfası ---------- */
.error-code {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Tema düzeltmeleri ---------- */
/* Temada .reveal öğeleri betik onları görünür yapana dek gizlidir; betik çalışmazsa içerik görünür kalsın. */
html:not(.js) .reveal {
    opacity: 1;
    transform: none;
}

/* Temada vurgu satır kırmaz (kısa ifade için tasarlanmış); bizim vurgular telefonda taşmasın. */
@media (max-width: 768px) {
    .hero-card .hero-title .highlight {
        white-space: normal;
    }
}

/* Dört ekran görüntüsü 2×2 dizilsin, biri tek kalmasın. */
.media-grid.shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .media-grid.shots {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Temalar: Sistem (varsayılan, işletim sistemini izler) · Açık · Koyu
   <html data-theme="system|light|dark"> sunucuda çerezden yazılır; site.js anında değiştirir.
   Açık tema developer724.css'in kendisidir. Koyu palet iki yerde aynıdır — birlikte güncelleyin.
   ========================================================================== */
:root[data-theme="light"] {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-primary: #F1F5F9;
    --color-accent: #60A5FA;
    --color-bg: #0B1120;
    --color-surface: #111827;
    --color-border: #243044;
    --color-text: #CBD5E1;
    --bg: #0B1120;
    --bg-deep: #080D1A;
    --surface: #111827;
    --surface-2: #0F172A;
    --surface-3: #1E293B;
    --border: #243044;
    --border-glow: rgba(96, 165, 250, 0.35);
    --text: #CBD5E1;
    --text-dim: #A3B1C6;
    --text-muted: #7C8BA1;
    --cyan: #60A5FA;
    --blue: #60A5FA;
    --purple: #A78BFA;
    --green: #4ADE80;
    --red: #F87171;
    --yellow: #FBBF24;
    --amber: #FBBF24;
    --orange: #FB923C;
    --teal: #2DD4BF;
    --grad: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #22D3EE 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(11, 17, 32, 0.85);
    --code-bg: #1E293B;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] {
        color-scheme: dark;
        --color-primary: #F1F5F9;
        --color-accent: #60A5FA;
        --color-bg: #0B1120;
        --color-surface: #111827;
        --color-border: #243044;
        --color-text: #CBD5E1;
        --bg: #0B1120;
        --bg-deep: #080D1A;
        --surface: #111827;
        --surface-2: #0F172A;
        --surface-3: #1E293B;
        --border: #243044;
        --border-glow: rgba(96, 165, 250, 0.35);
        --text: #CBD5E1;
        --text-dim: #A3B1C6;
        --text-muted: #7C8BA1;
        --cyan: #60A5FA;
        --blue: #60A5FA;
        --purple: #A78BFA;
        --green: #4ADE80;
        --red: #F87171;
        --yellow: #FBBF24;
        --amber: #FBBF24;
        --orange: #FB923C;
        --teal: #2DD4BF;
        --grad: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #22D3EE 100%);
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.35);
        --header-bg: rgba(11, 17, 32, 0.85);
        --code-bg: #1E293B;
    }
}

/* Koyu zeminde temanın açık renge göre ayarlı ince ayrıntıları */
:root[data-theme="dark"] .site-nav a.active {
    background: rgba(96, 165, 250, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .site-nav a.active {
        background: rgba(96, 165, 250, 0.1);
    }
}

/* ---------- Tema seçici ---------- */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.theme-switch .theme-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    color: var(--text-muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-switch .theme-opt::after {
    display: none;
}

.theme-switch .theme-opt:hover {
    color: var(--text);
    background: var(--surface-3);
    transform: none;
}

.theme-switch .theme-opt[aria-current="true"] {
    color: var(--blue);
    background: var(--surface-3);
}

.theme-switch svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.theme-switch .theme-label {
    display: none;
}

/* Masaüstünde başlıkta; 900 px altında menü açılır, seçici menünün içinde etiketleriyle görünür. */
.theme-switch.in-nav {
    display: none;
}

@media (max-width: 900px) {
    .theme-switch.in-header {
        display: none;
    }

    .theme-switch.in-nav {
        display: flex;
        align-self: flex-start;
        margin-top: 0.75rem;
    }

    .theme-switch.in-nav .theme-opt {
        width: auto;
        padding: 0.35rem 0.8rem;
        font-size: 0.85rem;
    }

    .theme-switch.in-nav .theme-label {
        display: inline;
    }
}

/* Tema mobilde başlıktaki küçük düğmeleri gizler (developer724'te "Teklif Al"); dil düğmesi görünür kalsın. */
.header-actions .btn-sm.lang-switch {
    display: inline-flex;
}
