/* =====================================================================
   OG Çocuk (/og-cocuk, /og-cocuk/{yas}-yas), 2026-10-23. og-kit iskeleti + .ogk--cocuk teması
   (og-kit.css): Güneş sarısı manşet, çimen yeşili vurgu, mercan daire. Burada yalnız sayfaya özel
   parçalar: Oyuncak blok süsü, yaş kartları, oyun kartındaki yaş rozeti ve işaretler, süzgeç hapları.
   Yaş renkleri PEGI'yi taklit etmez (OG Çocuk önerisi PEGI derecesi değildir).
   Gece modu tuzakları (site.css): Renkler iki sınıflı seçiciyle, gerekince !important.
   ===================================================================== */
.ogc {
    --c-age3: #ffd23f;  --c-age3-fg: #0f0f1a;
    --c-age7: #8fd14f;  --c-age7-fg: #0f0f1a;
    --c-age12: #ff7a59; --c-age12-fg: #0f0f1a;
    --c-age16: #4dabf7; --c-age16-fg: #0f0f1a;
    --c-age18: #0f0f1a; --c-age18-fg: #ffffff;
}

/* ---------- Manşet: Oyuncak blok süsü (bağlantı değil, karakter yok) ---------- */
.ogc-blocks { position: relative; height: 17rem; max-width: 22rem; margin: 0 auto; }
.ogc-block {
    position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 1.1rem;
    font-size: 1.6rem; color: var(--k-ink); box-shadow: 0 .9rem 0 -.45rem rgba(15, 15, 26, .25);
    animation: ogc-bob 4.5s ease-in-out infinite;
}
.ogc-block.b1 { width: 6.4rem; height: 6.4rem; left: 1rem; bottom: 0; background: #2f9e44; color: #fff; transform: rotate(-6deg); }
.ogc-block.b2 { width: 6.4rem; height: 6.4rem; left: 7.9rem; bottom: 0; background: #ff7a59; transform: rotate(4deg); animation-delay: .6s; }
.ogc-block.b3 { width: 6.4rem; height: 6.4rem; left: 14.8rem; bottom: .3rem; background: #fff; transform: rotate(-3deg); animation-delay: 1.2s; }
.ogc-block.b4 { width: 6.4rem; height: 6.4rem; left: 4.6rem; bottom: 6.7rem; background: #0f0f1a; color: #ffd23f; transform: rotate(5deg); animation-delay: 1.8s; }
.ogc-block.b5 { width: 6.4rem; height: 6.4rem; left: 11.4rem; bottom: 6.9rem; background: #4dabf7; transform: rotate(-5deg); animation-delay: 2.4s; }
.ogc-block.b6 { width: 4.4rem; height: 4.4rem; left: 9rem; bottom: 13.3rem; border-radius: 50%; background: #fff3c4; transform: rotate(8deg); font-size: 1.2rem; animation-delay: 3s; }
@keyframes ogc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- Yaş kartları ---------- */
.ogc-ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ogk .ogc-age {
    position: relative; display: flex; flex-direction: column; gap: .5rem; min-height: 11.5rem; padding: 1.2rem 1.25rem 1.1rem;
    border-radius: 1.6rem; text-decoration: none !important; overflow: hidden; isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ogk .ogc-age:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 1rem 0 -.5rem rgba(15, 15, 26, .25); }
.ogc-age::after {
    content: ""; position: absolute; z-index: -1; width: 8rem; height: 8rem; border-radius: 50%;
    right: -2.6rem; bottom: -3.4rem; background: rgba(255, 255, 255, .35);
}
.ogk .ogc-age b { font-family: 'Oswald', sans-serif; font-size: 3rem; line-height: .95; color: inherit; }
.ogk .ogc-age strong { font-family: 'Oswald', sans-serif; font-size: 1.2rem; line-height: 1.1; color: inherit; }
.ogk .ogc-age span { font-size: .88rem; line-height: 1.45; opacity: .85; color: inherit; }
.ogk .ogc-age em { margin-top: auto; font-style: normal; font-weight: 800; font-size: .85rem; color: inherit; }
.ogk .ogc-age.a3 { background: var(--c-age3); color: var(--c-age3-fg) !important; }
.ogk .ogc-age.a7 { background: var(--c-age7); color: var(--c-age7-fg) !important; }
.ogk .ogc-age.a12 { background: var(--c-age12); color: var(--c-age12-fg) !important; }
.ogk .ogc-age.a16 { background: var(--c-age16); color: var(--c-age16-fg) !important; }
.ogk .ogc-age.is-current { outline: 3px solid var(--k-ink); outline-offset: 3px; }
[data-theme="dark"] .ogk .ogc-age.is-current { outline-color: #fff; }

/* ---------- Oyun kartı: Kapak + yaş rozeti + üç işaret ---------- */
.ogc-grid { --k-min: 11rem; }
.ogc-agebadge {
    position: absolute; left: .55rem; top: .55rem; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.7rem; height: 2.7rem; padding: 0 .4rem; border-radius: 50%; border: 3px solid #fff;
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1;
}
.ogc-agebadge.a3 { background: var(--c-age3); color: var(--c-age3-fg); }
.ogc-agebadge.a7 { background: var(--c-age7); color: var(--c-age7-fg); }
.ogc-agebadge.a12 { background: var(--c-age12); color: var(--c-age12-fg); }
.ogc-agebadge.a16 { background: var(--c-age16); color: var(--c-age16-fg); }
.ogc-agebadge.a18 { background: var(--c-age18); color: var(--c-age18-fg); }
.ogc-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--k-icon); font-size: 2rem; }
.ogc-flags { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0 .35rem; }
.ogc-flag {
    display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .16rem .55rem;
    font-size: .72rem; font-weight: 700; line-height: 1.4; background: var(--k-paper); color: var(--k-text);
}
.ogc-flag i { font-size: .9em; color: var(--k-icon); }
.ogc-flag.is-good { background: var(--k-soft); color: var(--k-soft-fg); }
.ogc-flag.is-good i { color: inherit; }
.ogk .ogc-card-note { color: var(--k-muted); font-size: .82rem; line-height: 1.45; padding: 0 .35rem; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Süzgeç hapları (onay kutusu; JS yoksa "Uygula") ---------- */
.ogc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.3rem; }
.ogc-toggle { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.ogc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ogc-toggle span {
    display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px;
    background: var(--k-surface); border: 1px solid var(--k-line); color: var(--k-text); font-weight: 700; font-size: .88rem;
    transition: background-color .15s ease, border-color .15s ease;
}
.ogc-toggle span i { color: var(--k-icon); }
.ogc-toggle input:checked + span { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-on-accent); }
.ogc-toggle input:checked + span i { color: inherit; }
.ogc-toggle input:focus-visible + span { outline: 3px solid var(--k-bright); outline-offset: 2px; }
.ogk .ogc-clear { font-size: .86rem; font-weight: 700; color: var(--k-muted) !important; }
.ogc-noscript-btn { margin-left: .2rem; }

/* ---------- Rehberler ve yazılar: Konu kutuları + kısa satırlar ---------- */
.ogc-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; align-items: start; }
.ogc-topic { background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 1.5rem; padding: 1rem 1rem .6rem; }
.ogk .ogc-topic__title {
    display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: 1.2rem; line-height: 1.15; color: var(--k-text) !important;
}
.ogk .ogc-row {
    display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .55rem 0;
    border-top: 1px dashed var(--k-line); color: var(--k-text) !important; text-decoration: none !important;
}
.ogc-row__img {
    position: relative; aspect-ratio: 16 / 10; border-radius: .8rem; overflow: hidden; background: var(--k-soft); color: var(--k-soft-fg);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ogc-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ogc-row__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 800; font-size: .92rem; line-height: 1.35; }
.ogk .ogc-row:hover .ogc-row__title { color: var(--k-icon); }
.ogc-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; margin-top: .25rem; font-size: .76rem; color: var(--k-muted); }

/* ---------- Not alanları ve ilkeler (simgeli kutucuk ızgarası) ---------- */
.ogc-fields { --k-min: 13rem; }

/* ---------- Duyarlılık ---------- */
@media (max-width: 991.98px) {
    .ogc-blocks { display: none; }
    .ogc-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ogc-ages { gap: .7rem; }
    .ogk .ogc-age { min-height: 9.5rem; padding: 1rem; border-radius: 1.3rem; }
    .ogk .ogc-age b { font-size: 2.4rem; }
    /* 375 px'te iki sütun: 2 x 8.4rem + boşluk dar ekrana sığar. */
    .ogc-grid { --k-min: 8.4rem; gap: .7rem; }
    .ogc-flag { font-size: .68rem; padding: .14rem .45rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ogc-block { animation: none; }
    .ogk .ogc-age:hover { transform: none; }
}
