:root {
    --bg-color: #f7f7f8;
    --text-color: #333333;
    --heading-color: #111111;
    --link-color: #3d0000;
    --link-hover: #5c0000;
    --card-bg: #ffffff;
    --border-color: #e8e8eb;
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.06);
    --primary-color: #3d0000;
}

[lang="tr"] .en-only,
[lang="en"] .tr-only {
    display: none !important;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: #fff2f4;
}

html,
body {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--card-bg);
    background-image: radial-gradient(circle at top center, rgba(255, 182, 193, 0.10), transparent 85%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 40px;
}

/* ─── Back ─── */
.breadcrumb {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 6px 14px;
    border-radius: 16px;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: #888;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--link-hover);
}

/* ─── Hero ─── */
.hero {
    text-align: left;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.hero--sub {
    margin-bottom: 28px;
}

.app-icon {
    width: 64px;
    height: 64px;
    background-color: var(--card-bg);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    overflow: hidden;
}

.app-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.hero--sub .app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.app-name {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.short-desc {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 12px;
}

.last-updated {
    font-size: 0.88rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 22px;
}

/* ─── Store Badges ─── */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.badge-link:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.badge-img {
    height: 42px;
    width: auto;
}

.badge-img--play {
    height: 42px;
}

/* ─── App Screenshots ─── */
.screenshots-section {
    margin-bottom: 36px;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    padding: 0 44px;
    margin: 0 -44px;
}

.carousel-track-outer {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0;
}

.carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 14px 16px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.screenshot-slot {
    flex: 0 0 auto;
    width: calc((100% - 32px - 2 * 14px) / 3);
    aspect-ratio: 9 / 19.5;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.18s ease;
}

.screenshot-slot:hover {
    box-shadow: 0 0 15px rgba(61, 0, 0, 0.1),
        inset 0 80px 80px -80px rgba(61, 0, 0, 0.4),
        inset 0 50px 20px -50px rgba(61, 0, 0, 0.2);
}

.screenshot-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.screenshot-label {
    font-size: 0.8rem;
    color: #bbb;
    font-weight: 500;
    text-align: center;
    padding: 12px;
    user-select: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    z-index: 2;
}

.carousel-btn--prev {
    left: 0;
}

.carousel-btn--next {
    right: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.carousel-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* ─── Legal Cards (index sayfası) ─── */
.legal-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.legal-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: var(--card-bg);
    padding: 24px 26px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.legal-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #555;
}

.card-text {
    flex: 1;
}

.card-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 5px;
    letter-spacing: -0.01em;
}

.card-text p {
    font-size: 0.93rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.card-arrow {
    font-size: 1.3rem;
    color: #3d0000;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.legal-card:hover .card-arrow {
    color: var(--link-color);
}

/* ─── Anchor Menü ─── */
.anchor-menu {
    background-color: var(--card-bg);
    padding: 16px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.anchor-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.anchor-menu li {
    margin: 0;
}

.anchor-menu a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 500;
    font-size: 0.93rem;
    transition: color 0.15s ease;
}

.anchor-menu a:hover {
    color: var(--link-hover);
}

/* ─── Document ─── */
.document-section {
    background-color: var(--card-bg);
    padding: 40px 44px;
    border-radius: 18px;
    box-shadow: var(--shadow-light);
    margin-bottom: 36px;
    border: 1px solid var(--border-color);
}

.content-block h2 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-top: 38px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    letter-spacing: -0.015em;
    scroll-margin-top: 80px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    margin-bottom: 18px;
}

.content-block ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.content-block li {
    margin-bottom: 9px;
}

.content-block a {
    color: var(--link-color);
    text-decoration: none;
}

.content-block a:hover {
    color: var(--link-hover);
}

/* ─── Contact Card ─── */
.contact-section {
    background-color: var(--card-bg);
    padding: 36px 44px;
    border-radius: 18px;
    box-shadow: var(--shadow-light);
    margin-bottom: 36px;
    border: 1px solid var(--border-color);
}

.contact-section h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-card {
    background-color: #f9f9f9;
    padding: 24px 28px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid #eeeeee;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card p {
    margin: 5px 0;
}

.contact-card a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--link-hover);
}

/* ─── Footer ─── */
.site-footer {
    text-align: center;
    padding: 28px 20px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 0.88rem;
    margin-top: 10px;
}

.site-footer p {
    margin: 4px 0;
}

.site-footer a {
    color: #888;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text-color);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .container {
        padding: 28px 16px 32px;
    }

    .document-section,
    .contact-section {
        padding: 24px 20px;
    }

    .app-name {
        font-size: 1.75rem;
    }

    body {
        background-image: radial-gradient(circle at top center, rgba(255, 182, 193, 0.08), transparent 60%);
    }

    .badge-img,
    .badge-img--play {
        height: 38px;
    }

    .anchor-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .legal-card {
        padding: 20px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .carousel-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    .screenshot-slot {
        width: 66%;
    }

    .carousel-track {
        padding: 14px 16px;
        scroll-padding-inline: 16px;
    }
}