* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #1a1a1a; background: #fafafa; }
img { max-width: 100%; display: block; }
a { color: #c1121f; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid #eee; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; color: #1a1a1a; text-decoration: none; letter-spacing: -0.01em; }
.logo strong { color: #c1121f; }
.site-header nav a { margin-left: 24px; color: #333; text-decoration: none; font-size: 15px; }
.site-header nav a:hover { color: #c1121f; }

/* HERO */
.hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(135deg, #fff 0%, #fff5f5 100%); border-bottom: 1px solid #f0f0f0; }
.hero h1 { font-size: 46px; margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.15; }
.hero p { font-size: 18px; color: #666; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section h2 { font-size: 28px; margin-bottom: 32px; letter-spacing: -0.01em; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 28px; background: #c1121f; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 15px; transition: background .2s; border: 2px solid #c1121f; cursor: pointer; }
.btn:hover { background: #a10e19; border-color: #a10e19; }
.btn-outline { background: transparent; color: #c1121f; }
.btn-outline:hover { background: #c1121f; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-secondary { background: #888; border-color: #888; }
.btn-secondary:hover { background: #666; border-color: #666; }

/* PAGE HEADER */
.page-header { padding: 48px 0 32px; background: #fff; border-bottom: 1px solid #eee; }
.page-header h1 { font-size: 34px; margin-bottom: 8px; letter-spacing: -0.02em; }
.page-header p { color: #666; }

/* TEMA GRID */
.tema-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tema-kart { display: block; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid #eee; transition: transform .2s, box-shadow .2s; }
.tema-kart:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: #c1121f; }
.tema-kart-img { aspect-ratio: 4/3; background: #f5f5f5; overflow: hidden; }
.tema-kart-img img { width: 100%; height: 100%; object-fit: cover; }
.tema-kart-img .placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #bbb; font-size: 18px; font-weight: 600; }
.tema-kart-body { padding: 20px; }
.tema-kart-body h3 { font-size: 17px; margin-bottom: 8px; }
.badge { display: inline-block; background: #f0f0f0; color: #555; font-size: 11px; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.badge-lg { font-size: 12px; padding: 5px 14px; margin-bottom: 12px; }
.tema-kart-body p { font-size: 14px; color: #666; margin-top: 8px; margin-bottom: 12px; }
.fiyat { font-size: 18px; font-weight: 700; color: #c1121f; }
.fiyat-buyuk { font-size: 32px; font-weight: 700; color: #c1121f; margin: 20px 0; }

/* KATEGORİ GRID */
.kategori-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kategori-card { display: flex; flex-direction: column; justify-content: space-between; background: #fff; padding: 24px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid #eee; min-height: 120px; transition: border-color .2s; }
.kategori-card:hover { border-color: #c1121f; }
.kategori-card strong { font-size: 16px; }
.kategori-card span { font-size: 13px; color: #999; margin-top: 8px; }

/* TEMA DETAY */
.tema-detay { padding: 32px 0 64px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 24px; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #c1121f; }
.breadcrumb span { margin: 0 6px; }
.tema-detay-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 48px; }
.tema-detay-gorsel { border-radius: 16px; overflow: hidden; background: #f5f5f5; }
.tema-detay-gorsel img { width: 100%; }
.placeholder-buyuk { padding: 120px 20px; text-align: center; color: #bbb; font-size: 24px; font-weight: 600; }
.tema-detay-bilgi h1 { font-size: 32px; margin-bottom: 12px; letter-spacing: -0.02em; }
.tema-detay-bilgi .lead { font-size: 17px; color: #555; margin: 20px 0; }
.aksiyonlar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.icerik-blok { background: #fff; padding: 32px; border-radius: 12px; margin-bottom: 24px; border: 1px solid #eee; }
.icerik-blok h2 { font-size: 22px; margin-bottom: 20px; }
.ozellikler { list-style: none; padding: 0; }
.ozellikler li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid #f0f0f0; }
.ozellikler li:last-child { border-bottom: 0; }
.ozellikler li::before { content: "✓"; position: absolute; left: 0; color: #c1121f; font-weight: bold; }

/* FİLTRE */
.filtre-bar { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filtre-bar input, .filtre-bar select { padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #fff; }
.filtre-bar input[type=text] { flex: 1; min-width: 200px; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pagination a { padding: 10px 16px; background: #fff; border: 1px solid #eee; border-radius: 8px; text-decoration: none; color: #333; font-size: 14px; }
.pagination a:hover, .pagination a.active { background: #c1121f; color: #fff; border-color: #c1121f; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-kart { display: block; background: #fff; padding: 28px; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid #eee; transition: border-color .2s; }
.blog-kart:hover { border-color: #c1121f; }
.blog-kart h3 { font-size: 19px; margin-bottom: 12px; }
.blog-kart p { font-size: 14px; color: #666; margin-bottom: 16px; }
.blog-kart .tarih { font-size: 12px; color: #999; }

/* FOOTER */
.site-footer { margin-top: 80px; padding: 64px 0 24px; background: #1a1a1a; color: #ccc; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-cols h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-cols p, .footer-cols a { font-size: 14px; color: #999; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-cols a:hover { color: #c1121f; }
.site-footer p a { display: inline; color: #c1121f; }
.footer-bottom { border-top: 1px solid #333; padding-top: 24px; text-align: center; font-size: 13px; color: #666; }

.empty { color: #999; font-style: italic; padding: 40px 0; text-align: center; }

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .tema-detay-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-cols { grid-template-columns: 1fr; gap: 32px; }
    .site-header nav a { margin-left: 12px; font-size: 14px; }
    .tema-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

/* BLOG GORSEL */
.blog-kart-img { aspect-ratio: 16/9; overflow: hidden; background: #f5f5f5; }
.blog-kart-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-kart:hover .blog-kart-img img { transform: scale(1.04); }
.blog-kart-body { padding: 24px; }
.blog-kart h3 { margin-bottom: 12px; }
.blog-detay .blog-kapak { margin: 32px 0; border-radius: 12px; overflow: hidden; background: #f5f5f5; }
.blog-detay .blog-kapak img { width: 100%; display: block; }
.blog-detay .blog-ozet { font-size: 18px; color: #555; font-weight: 500; margin: 24px 0; padding-left: 16px; border-left: 4px solid #c1121f; }
.blog-detay .blog-icerik { margin: 32px 0; line-height: 1.8; }
.blog-detay .blog-geri { margin: 32px 0 64px; }
.blog-meta { color: #999; font-size: 14px; }

/* Blog kapak gorselini sinirla */
.blog-detay .blog-kapak {
    max-height: 420px;
    overflow: hidden;
}
.blog-detay .blog-kapak img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
}

/* RENKLI KATEGORI KARTLARI */
.kategori-card {
    position: relative;
    padding-left: 44px !important;
    background: linear-gradient(135deg, var(--kat-renk) 0%, var(--kat-renk) 4px, #fff 4px) !important;
    border-left: 0 !important;
    overflow: hidden;
}
.kategori-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 6px;
    background: var(--kat-renk);
}
.kategori-renk-nokta {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--kat-renk);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--kat-renk) 20%, transparent);
}
.kategori-card:hover {
    border-color: var(--kat-renk) !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--kat-renk) 20%, transparent) !important;
}
.kategori-card strong { color: #1a1a1a; }
.kategori-tema-sayisi { color: var(--kat-renk); font-weight: 600; }

/* FOOTER IMZA */
.footer-imza {
    border-top: 1px solid #333;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}
.footer-imza .coder {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: 999px;
    color: #ccc;
    transition: all .2s;
}
.footer-imza .coder:hover {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.5);
}
.footer-imza .coder svg {
    color: #c1121f;
}
.footer-imza .coder strong {
    color: #fff;
    letter-spacing: 0.02em;
}

/* ILETISIM */
.iletisim-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.iletisim-bilgi h2, .iletisim-form h2 { font-size: 22px; margin-bottom: 20px; }
.iletisim-bilgi p { margin-bottom: 16px; color: #555; }
.iletisim-bilgi strong { color: #1a1a1a; display: block; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.iletisim-not { padding: 16px; background: #fff5f5; border-left: 3px solid #c1121f; border-radius: 6px; font-size: 14px; margin-top: 24px; }
.iletisim-form { background: #fff; padding: 32px; border-radius: 12px; border: 1px solid #eee; }
.iletisim-form label { display: block; font-size: 13px; color: #555; font-weight: 600; margin-bottom: 6px; margin-top: 16px; }
.iletisim-form label:first-of-type { margin-top: 0; }
.iletisim-form input, .iletisim-form textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.iletisim-form textarea { resize: vertical; }
.iletisim-form button { margin-top: 24px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #4caf50; }

@media (max-width: 768px) {
    .iletisim-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ERISILEBILIRLIK: Kontrast iyilestirmesi */
.site-footer { color: #d1d5db; }
.site-footer p, .site-footer a { color: #d1d5db !important; }
.site-footer a:hover { color: #ff8fa3 !important; }
.footer-bottom { color: #b0b0b0 !important; }
.footer-cols h4 { color: #fff !important; }

.breadcrumb, .breadcrumb a { color: #555 !important; }
.breadcrumb a:hover { color: #a10e19 !important; }

.tema-kart-body p { color: #4a4a4a; }
.badge { background: #e8e8e8; color: #333; }
.kategori-card span { color: #555; }
.page-header p { color: #4a4a4a; }
.blog-kart p { color: #4a4a4a; }
.hero p { color: #4a4a4a; }
.empty { color: #666; }

/* Link altı çizgi (renk körü erişilebilirlik) */
.icerik-blok a, .blog-icerik a, .sss-cevap a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Form label kontrastı */
.iletisim-form label, .iletisim-bilgi strong { color: #333; }

/* Kategori renkli sayı kontrast */
.kategori-tema-sayisi { font-weight: 700; }

@media (min-width: 769px) {
    .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr !important; }
}

/* ============================================
   WCAG AA KONTRAST IYILESTIRMESI
   ============================================ */

/* Fiyat metni: daha koyu kirmizi + kalin */
.fiyat {
    color: #a10e19 !important;
    font-weight: 700 !important;
    font-size: 19px !important;
}

/* Fiyat buyuk (detay sayfasi) */
.fiyat-buyuk {
    color: #a10e19 !important;
    font-weight: 800 !important;
}

/* Badge: koyu gri metin + acik gri arka plan */
.badge {
    background: #ececec !important;
    color: #2a2a2a !important;
    font-weight: 700 !important;
}

/* Kategori badge buyuk */
.badge-lg {
    background: #ececec !important;
    color: #2a2a2a !important;
}

/* Buton metinleri: beyaz uzerine daha koyu kirmizi */
.btn {
    background: #c1121f !important;
    border-color: #c1121f !important;
    color: #ffffff !important;
}
.btn:hover {
    background: #a10e19 !important;
    border-color: #a10e19 !important;
}

/* Outline buton - metin koyu kirmizi */
.btn-outline {
    background: transparent !important;
    color: #a10e19 !important;
    border-color: #c1121f !important;
}
.btn-outline:hover {
    background: #c1121f !important;
    color: #ffffff !important;
}

/* Tema kart aciklamalari */
.tema-kart-body p { color: #3a3a3a !important; }
.tema-kart-body h3 { color: #0a0a0a !important; }

/* Kategori karti */
.kategori-card strong { color: #0a0a0a !important; }
.kategori-card .kategori-tema-sayisi { color: #a10e19 !important; }

/* Linkler */
a { color: #a10e19; }
.icerik-blok a, .blog-icerik a, .sss-cevap a { color: #a10e19 !important; }

/* Logo kirmizisi */
.logo strong { color: #c1121f !important; }

/* Blog tarih */
.blog-kart .tarih { color: #555 !important; }

/* Breadcrumb */
.breadcrumb, .breadcrumb a { color: #444 !important; }
.breadcrumb a:hover { color: #a10e19 !important; }

/* Footer link hover */
.site-footer a { color: #d1d5db !important; }
.site-footer a:hover { color: #ff8fa3 !important; }

/* Hero butonlari */
.hero-buttons .btn { background: #c1121f !important; }

/* Arama/kategori filtre kutusu */
.filtre-bar input, .filtre-bar select { color: #1a1a1a; }

/* SSS */
.sss-item summary { color: #0a0a0a !important; }
.sss-item summary::after { color: #a10e19 !important; }

/* Iletisim formu */
.iletisim-form label { color: #2a2a2a !important; }


/* Tema kart başlığı (h3 yerine div, erişilebilirlik için) */
.tema-kart-ad {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.3;
}

/* Screen reader only (gizli label) */
.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;
}

/* BLOG YAZAR KUTUSU */
.blog-yazar { margin: 40px 0; }
.yazar-kutu {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff; padding: 24px; border-radius: 12px;
    border: 1px solid #eee;
}
.yazar-avatar {
    flex-shrink: 0; width: 60px; height: 60px;
    background: #c1121f; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
}
.yazar-kutu strong { display: block; font-size: 17px; margin-bottom: 6px; }
.yazar-kutu p { font-size: 14px; color: #555; margin-bottom: 8px; }
.yazar-kutu a { font-size: 13px; color: #a10e19; font-weight: 600; }
.blog-meta { font-size: 14px; color: #666; }
.blog-icerik h2 {
    font-size: 22px; margin: 32px 0 12px; color: #1a1a1a;
    padding-bottom: 8px; border-bottom: 1px solid #eee;
}
.blog-icerik h2:first-child { margin-top: 0; }

/* Hero bolumundeki outline buton icin kontrast iyilestirmesi */
.hero .btn-outline,
.hero-buttons .btn-outline {
    background: #ffffff !important;
    color: #a10e19 !important;
    border: 2px solid #a10e19 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.hero .btn-outline:hover,
.hero-buttons .btn-outline:hover {
    background: #a10e19 !important;
    color: #ffffff !important;
    border-color: #a10e19 !important;
}
