/* Acımasız Dörtlü web sayfası: oyunun kıraathane renkleri (lib/ui/theme.dart).
   Başlıklar Playfair Display (yüklenemezse Georgia), gövde cihazın kendi yazı tipi. */
@font-face {
    font-family: 'Playfair Display';
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
}

:root {
    --wood-dark: #2E1B10;
    --wood: #4E301B;
    --footer: #1E120A;
    --felt-center: #2F7A4D;
    --felt-edge: #17492E;
    --brass: #C9A24A;
    --brass-light: #EBD18E;
    --brass-dark: #7D5E22;
    --panel: #3A2416;
    --text-light: #F7EEDB;
    --text-muted: #CDB998;
    --paper: #FBFAF2;
    --paper-grid: rgba(196, 215, 232, 0.5);
    --margin-line: rgba(224, 112, 112, 0.55);
    --ink: #24232B;
    --cobalt: #1E4B96;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    background-color: var(--wood-dark);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brass-light);
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.text-center {
    text-align: center;
}

/* Üst bölüm: yeşil çuha */
.hero {
    background: radial-gradient(ellipse at 50% 30%, var(--felt-center) 0%, var(--felt-edge) 78%);
    border-bottom: 3px solid var(--brass-dark);
    padding: 56px 0 44px;
}

.app-icon {
    width: 116px;
    height: 116px;
    border-radius: 26px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--brass-light);
    font-size: clamp(2.3rem, 7vw, 3.4rem);
    line-height: 1.1;
    margin-top: 20px;
}

.hero-subtitle {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.5rem;
    margin-top: 4px;
}

.tagline {
    color: var(--brass-light);
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-top: 14px;
}

.pitch {
    max-width: 580px;
    margin: 18px auto 0;
    color: var(--text-light);
}

.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.store-button {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
}

.store-button img {
    height: 50px;
    width: auto;
    display: block;
}

/* Google'ın rozetinde üstte ve altta saydam pay var (250 pikselin 192'si dolu). */
.store-button img.play {
    height: 65px;
    margin: -7px 0;
}

.support {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

main {
    flex: 1;
    padding: 48px 0 56px;
}

.section-title {
    font-family: var(--serif);
    color: var(--brass-light);
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 26px;
}

/* Ekran görüntüleri */
.shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 56px;
}

.shots img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 2px solid var(--brass-dark);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Özellikler */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 56px;
}

.feature {
    background-color: var(--panel);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 14px;
    padding: 22px 22px 20px;
}

.feature h3 {
    font-family: var(--serif);
    color: var(--brass-light);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

.edition {
    max-width: 680px;
    margin: -28px auto 56px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* Yasal belge kartları */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--panel);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 16px;
    padding: 24px;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    border-color: var(--brass);
}

.card-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 162, 74, 0.16);
    color: var(--brass-light);
}

.doc-card h3 {
    font-family: var(--serif);
    color: var(--brass-light);
    font-size: 1.2rem;
}

/* Alt bilgi */
.site-footer {
    background-color: var(--footer);
    border-top: 1px solid var(--brass-dark);
    padding: 32px 0;
    margin-top: auto;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

/* Yasal sayfalar: kareli kağıt */
.page-head {
    background: radial-gradient(ellipse at 50% 30%, var(--felt-center) 0%, var(--felt-edge) 80%);
    border-bottom: 3px solid var(--brass-dark);
    padding: 22px 0;
}

.page-head a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.page-head img {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-head span {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--brass-light);
    font-size: 1.5rem;
}

.sheet {
    position: relative;
    width: calc(100% - 40px);
    max-width: 800px;
    margin: 0 auto;
    padding: 44px 44px 40px 72px;
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--paper-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    color: var(--ink);
    line-height: 1.75;
}

.sheet::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48px;
    width: 2px;
    background-color: var(--margin-line);
}

.sheet h1 {
    font-family: var(--serif);
    color: var(--wood-dark);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.sheet h2 {
    font-family: var(--serif);
    color: var(--wood);
    font-size: 1.3rem;
    margin: 28px 0 8px;
}

.sheet p {
    margin-bottom: 12px;
}

.sheet ul {
    padding-left: 22px;
    margin-bottom: 12px;
}

.sheet li {
    margin-bottom: 4px;
}

.sheet a {
    color: var(--cobalt);
}

.sheet .updated {
    color: #5A5560;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.back {
    text-align: center;
    margin-top: 32px;
}

.back a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    background-color: var(--felt-edge);
    color: var(--brass-light);
    font-weight: 600;
    text-decoration: none;
}

.back a:hover {
    background-color: var(--felt-center);
}

@media (max-width: 720px) {
    .hero {
        padding: 40px 0 34px;
    }

    .store-buttons {
        gap: 12px;
    }

    .store-button img {
        height: 42px;
    }

    .store-button img.play {
        height: 55px;
        margin: -6px 0;
    }

    .shots {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px 8px;
    }

    .shots img {
        flex: none;
        width: 62vw;
        max-width: 280px;
        scroll-snap-align: center;
    }

    main {
        padding-top: 36px;
    }

    .sheet {
        width: 100%;
        padding: 30px 18px 28px 40px;
        border-radius: 0;
    }

    .sheet::before {
        left: 26px;
    }

    .sheet h1 {
        font-size: 1.65rem;
    }
}
