/* =====================================================================
   Hakkımızda (/kurumsal/hakkimizda, Faruk 2026-10-24): og-kit üstüne sayfaya özel parçalar, önek ogh-.
   Görünüm: Views/News/Hakkimizda.cshtml. Marka verisi: Infrastructure/Utilities/OgBrandLines.cs.

   Marka hat haritası:
   - 992 px ve üstü: Solda "Oyun Günlüğü" aktarma durağı, sağa uzanan yatay hatlar. Duraklar bütün hatlarda aynı
     sütun genişliğinde (--max = en uzun hattın durak sayısı), hat çizgisi son durağın biraz ötesinde kapakla biter.
     Durağın üstüne gelince alttaki kart dolar. 992-1399 px arası yazı logoları sığmadığı için alt/üst sırayla dizilir.
   - 992 altı: Her hat dikey bir kart, açıklama ve bağlantılar durağın altında; kart gizli.
   Gece modu tuzağı: site.css a:not(...) kuralı (0,7,1) link rengini ezer, bağlantı renkleri !important.
   ===================================================================== */

/* Manşetteki "N marka, N hat" kartı (Faruk 2026-10-24: "ortalasana, çok sola kaymış", sonra "yine sola daha ama çok
   yapıştırma"): İçerik ortada; masaüstünde kart sol kenarla orta arasında, boşluğun dörtte biri kadar içeride
   (kit ikinci kartı tam sola yaslıyor). 992 altında kartlar zaten alt alta ve tam genişlik. */
.ogk .ogh-pill-center { text-align: center; }
.ogk .ogh-pill-center .ogk-pill__btns { justify-content: center; }
@media (min-width: 992px) {
    .ogk .ogk-pills .ogh-pill-center { left: 25%; transform: translateX(-25%) rotate(4deg); }
}

/* ---------- Hikâyemiz ---------- */
.ogh-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: 2rem; align-items: start; }
.ogk .ogh-story .ogk-prose { max-width: none; }
.ogh-story .ogk-prose img { max-width: 100%; height: auto; border-radius: 1rem; }

.ogh-facts { background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 1.4rem; padding: 1.25rem 1.3rem 1.35rem; }
.ogk .ogh-facts h3 { font-size: 1.35rem; margin: 0 0 1rem; color: var(--k-text) !important; }
.ogh-facts dl { margin: 0; display: grid; gap: .9rem; }
.ogh-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--k-icon); margin: 0 0 .2rem; }
.ogh-facts dd { margin: 0; font-weight: 600; color: var(--k-text); line-height: 1.45; }
.ogk .ogh-facts dd a { color: var(--k-text) !important; text-decoration: underline !important; text-decoration-color: var(--k-icon) !important; text-underline-offset: 3px; }
.ogk .ogh-facts dd a:hover { color: var(--k-icon) !important; }
.ogh-facts .ogk-chips { margin-top: .1rem; }
.ogh-facts .ogk-chips > span { background: var(--k-paper); font-size: .8rem; }

/* ---------- Yazı logosu (küçük): OG kırmızı kutu + markanın ikinci kutusu ---------- */
.ogh-wm {
    display: inline-flex; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .74rem; letter-spacing: .04em;
    line-height: 1; white-space: nowrap; box-shadow: 0 0 0 1px var(--k-line);
}
.ogh-wm span { padding: .3rem .38rem; }
.ogh .ogh-wm span:first-child { background: #e30a17; color: #fff; }
.ogh .ogh-wm span:last-child { background: var(--m2, #fff); color: var(--m2f, #0f0f1a); }

/* ---------- Hat haritası ---------- */
.ogh-map {
    --ty: 1.05rem;      /* hat çizgisinin satır içindeki yüksekliği */
    --rh: 3.75rem;      /* satır yüksekliği */
    --dot: 1.15rem;
    --name: 7.4rem;     /* hat adı sütunu */
    position: relative; display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); column-gap: 1.1rem; margin-top: .4rem;
}

/* Aktarma durağı: Bütün hatlar buradan çıkar. */
.ogh-hub {
    grid-column: 1; grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .8rem; background: var(--k-ink); color: #fff; border-radius: 2.7rem; padding: 1.1rem .4rem; text-align: center;
}
[data-theme="dark"] .ogh-hub { background: #0b0b14; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ogh-hub__pin { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 700; line-height: 1.1; color: rgba(255, 255, 255, .75); }
.ogh-hub__pin i { color: #ff6b6b; font-size: 1rem; }
.ogh-hub__og {
    width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #e30a17; color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.45rem; box-shadow: 0 0 0 .45rem rgba(255, 255, 255, .12);
}
.ogh-hub__name { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; white-space: nowrap; }

.ogh-lines { grid-column: 2; grid-row: 1; list-style: none; margin: 0; padding: 0; display: grid; row-gap: .3rem; min-width: 0; }
.ogh-line { position: relative; display: grid; grid-template-columns: var(--name) minmax(0, 1fr); min-height: var(--rh); transition: opacity .2s ease; }
/* Hat çizgisi: Aktarma durağının altından başlar, son durağın 1 rem ötesinde biter. */
.ogh-line::before {
    content: ""; position: absolute; z-index: 0; left: -1.7rem; top: calc(var(--ty) - 3px); height: 6px; border-radius: 3px; background: var(--l);
    width: calc(1.7rem + var(--name) + (100% - var(--name)) * (var(--n) - .5) / var(--max) + 1rem);
}
/* Son durak kapağı */
.ogh-line::after {
    content: ""; position: absolute; z-index: 0; top: calc(var(--ty) - .7rem); height: 1.4rem; width: 6px; border-radius: 3px; background: var(--l);
    left: calc(var(--name) + (100% - var(--name)) * (var(--n) - .5) / var(--max) + 1rem - 3px);
}
.ogk .ogh-line__name {
    position: relative; z-index: 1; align-self: start; justify-self: start; margin-top: calc(var(--ty) - 1.05rem); height: 2.1rem;
    display: inline-flex; align-items: center; gap: .42rem; padding: 0 .55rem 0 .75rem; border-radius: 999px; border: 3px solid var(--k-paper);
    background: var(--l); color: var(--lo) !important; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .86rem; line-height: 1;
    cursor: pointer; white-space: nowrap; transition: box-shadow .15s ease, transform .15s ease;
}
.ogh-line__name i { font-size: .82em; }
.ogh-line__name b { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .74rem; padding: .18rem .42rem; border-radius: 999px; background: rgba(15, 15, 26, .16); }
.ogk .ogh-line__name:hover { transform: translateY(-1px); }
.ogk .ogh-line__name:focus-visible { outline: 3px solid var(--k-text); outline-offset: 2px; }
.ogk .ogh-line__name[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--l); }
.ogh-map.is-filtered .ogh-line:not(.is-lit) { opacity: .22; }

.ogh-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--max), minmax(0, 1fr)); min-width: 0; }
.ogh-stop { position: relative; z-index: 1; min-height: var(--rh); min-width: 0; }
.ogk .ogh-stop__link { position: absolute; inset: 0; display: block; color: var(--k-text) !important; text-decoration: none !important; outline: none; }
.ogh-dot {
    position: absolute; left: 50%; top: calc(var(--ty) - var(--dot) / 2); width: var(--dot); height: var(--dot); margin-left: calc(var(--dot) / -2);
    border-radius: 50%; background: #fff; border: 4px solid var(--l); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.ogh-stop .ogh-wm { position: absolute; left: 50%; top: calc(var(--ty) + .95rem); transform: translateX(-50%); transition: transform .18s ease; }
.ogh-stop__info { display: none; }
@media (min-width: 992px) {
    .ogh-stop.is-on .ogh-dot,
    .ogh-stop__link:hover .ogh-dot,
    .ogh-stop__link:focus-visible .ogh-dot { transform: scale(1.4); background: var(--l); box-shadow: 0 0 0 3px var(--k-paper), 0 0 0 5px var(--l); }
    .ogh-stop.is-on .ogh-wm,
    .ogh-stop__link:hover .ogh-wm { transform: translateX(-50%) translateY(2px) scale(1.08); }
    .ogh-stop__link:focus-visible .ogh-wm { outline: 2px solid var(--k-text); outline-offset: 3px; }
}

/* Durak kartı (yalnız geniş ekran) */
.ogh-card {
    grid-column: 1 / -1; margin-top: 1.4rem; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; align-items: stretch;
    background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 1.6rem; overflow: hidden; overflow: clip;
}
.ogh-card__band {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .75rem;
    padding: 1.3rem 1.4rem; background: linear-gradient(135deg, var(--ha) 0%, var(--hb) 100%); color: var(--hf);
}
.ogh-card__band::before {
    content: ""; position: absolute; z-index: -1; width: 8.5rem; height: 8.5rem; border-radius: 50%; right: -2.8rem; bottom: -4.6rem; background: var(--hd); opacity: .95;
}
/* "Seçili durak": Kartın sabit bir öğe değil, seçilen durağın bilgisi olduğunu söyler. */
.ogh-card__kicker { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.ogh-card__band .ogh-wm { font-size: 1.05rem; box-shadow: none; }
.ogh-card__band .ogh-wm span { padding: .38rem .55rem; }
.ogh-card__line {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; line-height: 1;
    padding: .38rem .75rem; border-radius: 999px; background: var(--l); color: var(--lo); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}
.ogh-card__body { padding: 1.15rem 1.4rem; min-width: 0; align-self: center; }
.ogk .ogh-card__name { font-size: 1.4rem; line-height: 1.1; margin: 0 0 .4rem; color: var(--k-text) !important; }
.ogk .ogh-card__body p { margin: 0; color: var(--k-muted); font-size: .96rem; line-height: 1.55; }
.ogh-card__links { margin-top: .7rem; }
.ogh-card__links[hidden] { display: none; }
.ogk .ogh-card__go { align-self: center; margin: 0 1.4rem 0 0; }
/* Gece modunda mürekkep düğme koyu kartta seçilmiyor: OG kırmızısı. */
[data-theme="dark"] .ogk .ogh-card__go { background: var(--k-accent); color: var(--k-on-accent) !important; }

/* Durak altı bağlantıları (telefon) ve kart bağlantıları: Çipler, gece modunda da okunur. */
.ogk .ogh-stop__links > a, .ogk .ogh-card__links > a { font-size: .8rem; padding: .28rem .7rem; color: var(--k-text) !important; }
.ogk .ogh-stop__links > a:hover, .ogk .ogh-card__links > a:hover { border-color: var(--l); color: var(--k-icon) !important; }

/* 992-1399: En uzun hat (Oku, 9 durak) için sütun dar; yazı logoları sırayla altta ve üstte. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .ogh-map { --ty: 2.3rem; --rh: 4.7rem; --name: 6.6rem; }
    .ogh-stop:nth-child(even) .ogh-wm { top: auto; bottom: calc(100% - var(--ty) + .95rem); }
    .ogh-stop:nth-child(even).is-on .ogh-wm,
    .ogh-stop:nth-child(even) .ogh-stop__link:hover .ogh-wm { transform: translateX(-50%) translateY(-2px) scale(1.08); }
}

/* ---------- 992 altı: Dikey hat kartları ---------- */
@media (max-width: 991.98px) {
    .ogh-story { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }

    .ogh-map { display: block; }
    .ogh-hub { flex-direction: row; justify-content: flex-start; gap: .75rem; border-radius: 999px; padding: .5rem 1.1rem .5rem .5rem; margin-bottom: 1rem; }
    .ogh-hub__og { width: 2.7rem; height: 2.7rem; font-size: 1.1rem; box-shadow: none; }
    .ogh-hub__name { writing-mode: horizontal-tb; transform: none; }
    .ogh-hub__pin { order: 3; flex-direction: row; margin-left: auto; font-size: .74rem; }

    .ogh-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
    .ogh-line { display: block; min-height: 0; background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 1.4rem; padding: 1rem 1rem 1.15rem; }
    .ogh-line::before, .ogh-line::after { display: none; }
    .ogk .ogh-line__name { margin: 0 0 1rem; border-color: var(--k-surface); }

    .ogh-stops { display: flex; flex-direction: column; gap: 1.05rem; }
    .ogh-stop { min-height: 0; padding-left: 1.9rem; }
    /* Duraktan bir sonrakine dikey hat parçası (dot ortası .67 rem) */
    .ogh-stop:not(:last-child)::before {
        content: ""; position: absolute; z-index: 0; left: calc(var(--dot) / 2 - 3px); top: .67rem; bottom: calc(-1.05rem - .67rem); width: 6px; background: var(--l);
    }
    .ogk .ogh-stop__link { position: static; display: inline-flex; }
    .ogh-dot { z-index: 1; left: 0; margin-left: 0; top: calc(.67rem - var(--dot) / 2); }
    .ogh-stop .ogh-wm { position: static; transform: none; }
    .ogh-stop__info { display: block; margin-top: .45rem; }
    .ogk .ogh-stop__info p { margin: 0; color: var(--k-muted); font-size: .9rem; line-height: 1.5; }
    .ogh-stop__links { margin-top: .5rem; }
    .ogk .ogh-stop__go {
        display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; padding: .38rem .85rem; border-radius: 999px;
        background: var(--k-ink); color: #fff !important; font-size: .8rem; font-weight: 700; text-decoration: none !important;
    }
    .ogh-stop__go i { font-size: .75em; }
    [data-theme="dark"] .ogk .ogh-stop__go { background: var(--k-accent); color: var(--k-on-accent) !important; }
    .ogh-card { display: none; }

    /* Betik varken açıklama dokununca açılır (ilk durak açık gelir); kapalı durakta yanında küçük ok. */
    .ogh-map.is-js .ogh-stop:not(.is-open) .ogh-stop__info { display: none; }
    .ogh-map.is-js .ogh-stop:not(.is-open) .ogh-stop__link::after {
        content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .62rem; color: var(--k-muted);
        align-self: center; margin-left: .55rem;
    }
    .ogh-map.is-js .ogh-stop.is-open .ogh-dot { background: var(--l); }
}
@media (max-width: 575.98px) {
    .ogh-lines { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .ogh-dot, .ogh-stop .ogh-wm, .ogh-line, .ogk .ogh-line__name { transition: none; }
    .ogk .ogh-line__name:hover { transform: none; }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .ogh-stop.is-on .ogh-wm, .ogh-stop__link:hover .ogh-wm,
    .ogh-stop:nth-child(n).is-on .ogh-wm, .ogh-stop:nth-child(n) .ogh-stop__link:hover .ogh-wm { transform: translateX(-50%); }
}
