/* Autopedya — marka ve model fiyat sayfaları (generate_price_pages.py üretir).
   Renkler ve yazı tipleri fiyat-listesi.html ile aynı değişkenleri kullanır. */

@font-face {
    font-family: 'High Speed';
    src: url('/fonts/HighSpeed.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

.font-logo {
    font-family: 'High Speed', 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-style: italic;
}

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --surface-3: #222222;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --red: #e53935;
    --red-glow: rgba(229, 57, 53, 0.15);
    --text: #f5f5f5;
    --text-2: #999;
    --text-3: #666;
    --green: #81C784;
    --green-bg: rgba(76, 175, 80, 0.15);
}

.light {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --surface-3: #e5e7eb;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #111111;
    --text-2: #4b5563;
    --text-3: #6b7280;
    --green: #2e7d32;
    --green-bg: rgba(46, 125, 50, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Başlık ve alt bilgi açık temada da koyu kalır (fiyat-listesi.html ile aynı) */
.light header { background-color: #0a0a0a !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.light header .text-white { color: #ffffff !important; }
.light header .text-gray-300, .light header .text-gray-400, .light header .text-gray-500 { color: #d1d5db !important; }
.light .font-logo { color: #ffffff !important; }
.light .footer-logo { color: #0a0a0a !important; }
.light #mobile-menu .text-gray-300 { color: #d1d5db !important; }
.light #mobile-menu .bg-ap-gray { background-color: #1a1a1a !important; }
.light footer.force-dark { background-color: #ffffff; border-color: var(--border); }

/* SAYFA İSKELETİ */
.fp-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 32px 48px;
}

.fp-crumbs {
    font-size: 0.72rem;
    color: var(--text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.fp-crumbs a { color: var(--text-2); text-decoration: none; }
.fp-crumbs a:hover { color: var(--red); }
.fp-crumbs span[aria-hidden] { opacity: 0.5; }

/* ÜST BÖLÜM */
.fp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.fp-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.fp-brand-row a { color: inherit; text-decoration: none; }
.fp-brand-row a:hover { color: var(--red); }
.fp-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px;
}
.light .fp-brand-logo { background: rgba(0, 0, 0, 0.04); }

.fp-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 10px 0 8px;
}

.fp-sub {
    font-size: 0.8rem;
    color: var(--text-2);
}

.fp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.fp-pill {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
}
.fp-pill .num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--red);
    white-space: nowrap;
}
.fp-pill .num.plain { color: var(--text); }
.fp-pill .label {
    font-size: 0.62rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-hero-img {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fp-hero-img img { max-width: 92%; max-height: 180px; object-fit: contain; }

/* METİN */
.fp-lead {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-2);
    margin: 24px 0 8px;
    max-width: 820px;
}
.fp-lead strong { color: var(--text); font-weight: 600; }

.fp-section { margin-top: 36px; }
.fp-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.fp-section > p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 820px;
}
.fp-source-line {
    font-size: 0.78rem;
    color: var(--text-2);
    margin-top: 12px;
}
.fp-source-line a { color: var(--red); font-weight: 600; text-decoration: none; }
.fp-source-line a:hover { text-decoration: underline; }

.fp-warning {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-2);
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
}
.fp-warning a { color: var(--red); }

.fp-note {
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 10px;
    line-height: 1.6;
}

/* FİYAT TABLOSU (fiyat-listesi.html'deki .version-table ile aynı dil) */
.fp-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}
.fp-table {
    width: 100%;
    border-collapse: collapse;
}
.fp-table th {
    font-size: 0.65rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    white-space: nowrap;
}
.fp-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.fp-table tr:last-child td { border-bottom: none; }
.fp-table tbody tr:hover td { background: var(--surface-2); }
.fp-table .num { text-align: right; white-space: nowrap; }
.fp-table th.num { text-align: right; }
.fp-vname { font-weight: 600; }
.fp-tax sup { color: var(--text-3); margin-left: 2px; }
.fp-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--red);
}
.fp-old { color: var(--text-3); text-decoration: line-through; font-size: 0.75rem; }
.fp-list { color: var(--text-2); }
.fp-save {
    font-size: 0.62rem;
    background: var(--green-bg);
    color: var(--green);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    white-space: nowrap;
}
.fp-dash { color: var(--text-3); }

.fp-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-2);
    white-space: nowrap;
}
.fp-tag.fuel-benzin { border-color: rgba(76, 175, 80, 0.3); color: #81C784; }
.fp-tag.fuel-dizel { border-color: rgba(255, 152, 0, 0.3); color: #FFB74D; }
.fp-tag.fuel-elektrik { border-color: rgba(33, 150, 243, 0.3); color: #64B5F6; }
.fp-tag.fuel-hibrit { border-color: rgba(0, 188, 212, 0.3); color: #4DD0E1; }
.fp-tag.fuel-phev { border-color: rgba(156, 39, 176, 0.3); color: #BA68C8; }
.fp-tag.fuel-lpg { border-color: rgba(255, 193, 7, 0.3); color: #FFD54F; }
.light .fp-tag.fuel-benzin { color: #2e7d32; }
.light .fp-tag.fuel-dizel { color: #e65100; }
.light .fp-tag.fuel-elektrik { color: #1565c0; }
.light .fp-tag.fuel-hibrit { color: #00838f; }
.light .fp-tag.fuel-phev { color: #7b1fa2; }
.light .fp-tag.fuel-lpg { color: #f57f17; }

/* FİYAT GEÇMİŞİ */
.fp-history {
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.fp-history li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.fp-history li:last-child { border-bottom: none; }
.fp-history time { color: var(--text-3); font-size: 0.75rem; }
.fp-chart {
    margin: 0 0 14px;
    padding: 14px 16px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.fp-chart svg { display: block; width: 100%; height: 160px; }
.fp-chart-line { fill: none; stroke: var(--red); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fp-chart-grid { stroke: var(--border-hover); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.fp-chart-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-3); font-size: 0.7rem; }
.fp-chart figcaption { margin-top: 8px; color: var(--text-2, var(--text-3)); font-size: 0.78rem; }
.fp-up { color: var(--red); font-weight: 600; white-space: nowrap; }
.fp-down { color: var(--green); font-weight: 600; white-space: nowrap; }

/* MODEL KARTLARI (rakipler ve marka sayfası) */
.fp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.fp-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.fp-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--red-glow);
}
.fp-card-img {
    height: 120px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}
.fp-card-img img { max-width: 88%; max-height: 104px; object-fit: contain; }
.fp-card-body { padding: 12px 14px; }
.fp-card-brand {
    font-size: 0.62rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.fp-card-model {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    margin-top: 2px;
}
.fp-card-meta { font-size: 0.68rem; color: var(--text-3); margin-top: 8px; }
.fp-card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--red);
    font-size: 0.95rem;
    margin-top: 2px;
}

.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-chip {
    padding: 7px 12px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-2);
    text-decoration: none;
    transition: all 0.2s;
}
.fp-chip:hover { border-color: var(--red); color: var(--text); }
.fp-chip b { color: var(--text); font-weight: 600; }

/* SSS */
.fp-faq {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.fp-faq details { border-bottom: 1px solid var(--border); }
.fp-faq details:last-child { border-bottom: none; }
.fp-faq summary {
    cursor: pointer;
    padding: 14px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: '+'; color: var(--text-3); font-weight: 400; }
.fp-faq details[open] summary::after { content: '−'; }
.fp-faq details p {
    padding: 0 16px 14px;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-2);
}

/* KAYNAK KUTUSU */
.fp-source {
    margin-top: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
}
.fp-source h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.fp-source p {
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-2);
}
.fp-source p + p { margin-top: 6px; }
.fp-source a { color: var(--red); }

/* MOBİL */
@media (max-width: 760px) {
    .fp-main { padding: 16px 16px 40px; }
    .fp-hero { grid-template-columns: 1fr; padding: 20px; }
    .fp-hero-img { order: -1; height: 170px; }
    .fp-hero h1 { font-size: 1.5rem; }

    /* Tablo satırları mobilde kart olur */
    .fp-table-wrap { background: transparent; border: none; overflow: visible; }
    .fp-table thead { display: none; }
    .fp-table, .fp-table tbody, .fp-table tr, .fp-table td { display: block; width: 100%; }
    .fp-table tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 6px 0;
    }
    .fp-table td {
        border-bottom: none;
        padding: 5px 14px;
        align-items: center;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
    }
    .fp-table td::before {
        content: attr(data-label);
        font-size: 0.65rem;
        color: var(--text-3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
        flex-shrink: 0;
    }
    .fp-table td.fp-vcell { display: block; text-align: left; padding-top: 10px; }
    .fp-table td.fp-vcell::before { display: none; }
    .fp-table tbody tr:hover td { background: transparent; }

    .fp-history li { grid-template-columns: 1fr auto; }
    .fp-history li time { grid-column: 1 / -1; }
    .fp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .fp-card-img { height: 96px; }
}
