/* ======================================================================
   ansiklopedi.css — /ansiklopedi bölüm ana sayfası (2026-11-29)
   Kartlar: ikon + canlı sayı, başlık, tanım, rastgele 3 madde, bölüme git.
   Metin tam siyah/beyaz; vurgu mürdüm #503b4b / koyuda lila #c9a3bd.
   Tema tuzağı: "button { width:100% }" — düğmelerde width:auto.
   ====================================================================== */

/* hero içi arama + rastgele */
.ab-ara { display: flex; align-items: center; gap: 0; max-width: 620px; margin-top: 22px; position: relative; }
.ab-ara > i { position: absolute; left: 18px; color: #503b4b; font-size: 15px; pointer-events: none; }
.ab-ara input[type=search] {
    flex: 1 1 auto; height: 54px; margin: 0; padding: 0 18px 0 46px; border-radius: 999px 0 0 999px;
    border: 1.5px solid rgba(80, 59, 75, .25); border-right: 0; background: #fff; color: #000; font-size: 15.5px;
}
.ab-ara input[type=search]:focus { outline: none; border-color: #503b4b; box-shadow: 0 0 0 4px rgba(80, 59, 75, .12); }
.ab-ara button {
    width: auto !important; flex: 0 0 auto; height: 54px; margin: 0; padding: 0 26px; border: 0; cursor: pointer;
    border-radius: 0 999px 999px 0; background: #503b4b; color: #fff; font-size: 15px; font-weight: 800;
}
.ab-rastgele {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px; border-radius: 999px;
    background: rgba(80, 59, 75, .1); color: #000 !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
}
.ab-rastgele:hover { background: #503b4b; color: #fff !important; }
.ab-rastgele:hover i { animation: abZar .5s; }
@keyframes abZar { to { transform: rotate(360deg); } }
body.active-dark-mode .ab-ara > i { color: #c9a3bd; }
body.active-dark-mode .ab-ara input[type=search] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
body.active-dark-mode .ab-ara button { background: #c9a3bd; color: #000; }
body.active-dark-mode .ab-rastgele { background: rgba(255, 255, 255, .1); color: #fff !important; }
body.active-dark-mode .ab-rastgele:hover { background: #c9a3bd; color: #000 !important; }

/* kartlar */
.ab-izgara { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ab-kart {
    display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: 20px;
    background: #fff; border: 1px solid rgba(80, 59, 75, .14);
    transition: border-color .2s, box-shadow .25s, transform .25s;
}
.ab-kart:hover { border-color: #503b4b; box-shadow: 0 22px 40px -26px rgba(80, 59, 75, .75); transform: translateY(-3px); }
.ab-kart-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none !important; }
.ab-ikon {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px;
    background: rgba(80, 59, 75, .1); color: #503b4b; font-size: 22px; transition: background-color .2s, color .2s, transform .3s;
}
.ab-kart:hover .ab-ikon { background: #503b4b; color: #fff; transform: rotate(-6deg); }
.ab-sayi { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.ab-sayi b { font-size: 28px; font-weight: 900; letter-spacing: -.02em; color: #000; font-variant-numeric: tabular-nums; }
.ab-sayi small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #503b4b; }
.ab-kart h2 { margin: 16px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.ab-kart h2 a { color: #000 !important; text-decoration: none !important; }
.ab-kart p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: #000; }
.ab-ornek { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.ab-ornek-et { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #503b4b; }
.ab-ornek a {
    display: inline-flex; align-items: center; max-width: 100%; height: 30px; padding: 0 11px; border-radius: 999px;
    background: rgba(80, 59, 75, .07); color: #000 !important; font-size: 13px; font-weight: 600; text-decoration: none !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ab-ornek a:hover { background: #503b4b; color: #fff !important; }
.ab-git { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #503b4b !important; text-decoration: none !important; }
.ab-git i { transition: transform .2s; }
.ab-kart:hover .ab-git i { transform: translateX(4px); }
.ab-not { margin-top: 30px; }

body.active-dark-mode .ab-kart { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
body.active-dark-mode .ab-kart:hover { border-color: #c9a3bd; }
body.active-dark-mode .ab-ikon { background: rgba(255, 255, 255, .08); color: #c9a3bd; }
body.active-dark-mode .ab-kart:hover .ab-ikon { background: #c9a3bd; color: #000; }
body.active-dark-mode .ab-sayi b, body.active-dark-mode .ab-kart h2 a, body.active-dark-mode .ab-kart p { color: #fff !important; }
body.active-dark-mode .ab-sayi small, body.active-dark-mode .ab-ornek-et, body.active-dark-mode .ab-git { color: #c9a3bd !important; }
body.active-dark-mode .ab-ornek a { background: rgba(255, 255, 255, .08); color: #fff !important; }
body.active-dark-mode .ab-ornek a:hover { background: #c9a3bd; color: #000 !important; }

@media (max-width: 575px) {
    .ab-ara input[type=search], .ab-ara button { height: 48px; }
    .ab-ara button { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .ab-kart, .ab-ikon, .ab-git i { transition: none; } }
