
/*
Theme Name: CarCompare
Theme URI: https://example.com/carcompare
Author: ChatGPT
Author URI: https://chat.openai.com/
Description: Araç karşılaştırma odaklı, hafif ve hızlı WordPress teması.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carcompare
*/

/* Reset & base */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:#0c0e13; background:#f8fafc; }
a { color:#1e793f; text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; height:auto; display:block; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header { background:#181e29; color:#fff; position:sticky; top:0; z-index:50; }
.site-header .inner { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.logo { font-weight:800; letter-spacing:.3px; font-size:22px; }
.nav { display:flex; gap:18px; }
.nav a { color:#e5e7eb; padding:8px 10px; border-radius:10px; }
.nav a:hover { background:#111827; color:#fff; }

/* Footer */
.site-footer { background:#0c0e13; color:#cbd5e1; padding:32px 0; margin-top:40px; }
.site-footer a { color:#f1f5f9; }

/* Cards */
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap:18px; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:18px; overflow:hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,6,23,.08); }
.card .content { padding:14px; }
.badge { display:inline-block; background:#eef2ff; color:#1e793f; padding:2px 8px; border-radius:999px; font-size:12px; }

/* Compare Bar */
.compare-bar { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); background:#141a25; color:#fff; border-radius:16px; padding:10px 14px; display:flex; gap:10px; align-items:center; box-shadow:0 12px 24px rgba(0,0,0,.22); z-index:60; }
.compare-bar button { background:#1e793f; color:#10101a; border:none; padding:8px 12px; border-radius:12px; cursor:pointer; font-weight:600; }
.compare-bar .muted { background:#334155; color:#e2e8f0; }
.compare-pill { background:#0f1014; padding:6px 10px; border-radius:999px; display:flex; gap:8px; align-items:center; }
.compare-pill .x { cursor:pointer; }

/* Forms & Filters */
.filter-bar { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px; margin:18px 0; }
.filter-bar input, .filter-bar select { padding:10px; border:1px solid #cbd5e1; border-radius:12px; background:#fff; }
.button { display:inline-block; background:#1e793f; color:#fff; padding:10px 14px; border-radius:12px; font-weight:600; }
.button.secondary { background:#475569; }
.table { width:100%; border-collapse:separate; border-spacing:0; background:#fff; border:1px solid #e5e7eb; border-radius:16px; overflow:hidden; }
.table th, .table td { text-align:left; padding:10px 12px; border-bottom:1px solid #f1f5f9; }
.table th { background:#f8fafc; font-weight:700; }
.table tr:last-child td { border-bottom:none; }
.feature-list { display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; font-size:14px; color:#0e1116; }
.feature-list div { display:flex; justify-content:space-between; gap:8px; }
.notice { padding:12px 14px; background:#fff7ed; border:1px solid #fed7aa; color:#7c2d12; border-radius:12px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.swiper-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-slide h2 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    margin: 0;
    font-size: 18px;
}

.comparison-container {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.comparison-table thead th {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 15px;
    text-align: center;
}

.comparison-table tbody td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #333;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f9fbff;
}

.comparison-table tbody tr:hover {
    background: #eef4ff;
    transition: 0.3s;
}

.comparison-table td:first-child {
    font-weight: 600;
    text-align: left;
    background: #f3f6fb;
}
