/* ============================================================
   AgeKader — Editorial theme (visitor side)
   ----------------------------------------------------------------
   Yön A: warm paper ground, Newsreader display serif, Karla body,
   terracotta accent, gold for open calls.
   Scoped to `body.theme-light` — the member area keeps the dark
   Linear theme untouched. Loaded AFTER linear-theme.css.
   ============================================================ */

body.theme-light {
    /* Ground and surfaces */
    --ak-canvas: #faf6f0;
    --ak-surface-1: #fffdfa;
    --ak-surface-2: #f2ebe1;
    --ak-surface-3: #e8ddcd;
    --ak-surface-4: #ded2c1;

    --ak-hairline: #e2d9cc;
    --ak-hairline-strong: #cdbfae;
    --ak-hairline-tertiary: #a2988c;

    --ak-ink: #1b1713;
    --ak-ink-muted: #574d43;
    /* Kucuk ikincil yazilar icin: #7c7166 kagit zeminde 4.0'da kaliyordu, WCAG AA 4.5 istiyor. */
    --ak-ink-subtle: #6b6157;
    --ak-ink-tertiary: #a2988c;

    /* Accents */
    --ak-primary: #b0512c;
    --ak-primary-hover: #7d3819;
    --ak-primary-focus: #7d3819;
    --ak-gold: #e0a33c;
    --ak-green: #2e7d4f;

    --ak-serif: Newsreader, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --ak-sans: Karla, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --bs-body-bg: var(--ak-canvas);
    --bs-body-color: var(--ak-ink);
    --bs-border-color: var(--ak-hairline);
    /* Baglanti rengi dugme zemininden bir tik koyu: kucuk puntoda 4.5'i gecsin. */
    --bs-link-color: #9c4523;
    --bs-link-hover-color: var(--ak-primary-hover);
    --bs-tertiary-bg: var(--ak-surface-2);
}

/* ---------- Typography ---------- */
body.theme-light,
body.theme-light .navbar,
body.theme-light .btn,
body.theme-light .form-control,
body.theme-light .form-select {
    font-family: var(--ak-sans);
    letter-spacing: 0;
}
body.theme-light { font-size: 16px; line-height: 1.62; }

body.theme-light h1, body.theme-light .h1,
body.theme-light h2, body.theme-light .h2,
body.theme-light h3, body.theme-light .h3,
body.theme-light .display-4, body.theme-light .display-5, body.theme-light .display-6 {
    font-family: var(--ak-serif);
    font-weight: 500;
    color: var(--ak-ink);
    text-wrap: balance;
}
body.theme-light h1, body.theme-light .h1 { font-size: 2.9rem; line-height: 1.08; letter-spacing: -1.4px; }
body.theme-light h2, body.theme-light .h2 { font-size: 1.85rem; line-height: 1.15; letter-spacing: -0.6px; }
body.theme-light h3, body.theme-light .h3 { font-size: 1.45rem; letter-spacing: -0.4px; }
body.theme-light h4, body.theme-light .h4 { font-family: var(--ak-serif); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.3px; }
body.theme-light h5, body.theme-light .h5 { font-family: var(--ak-sans); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; }
body.theme-light h6, body.theme-light .h6 { font-family: var(--ak-sans); font-weight: 700; font-size: 0.95rem; }
body.theme-light .display-5 { font-size: 3.3rem; }
body.theme-light .display-6 { font-size: 2.6rem; }

body.theme-light .lead {
    font-family: var(--ak-sans);
    font-size: 1.12rem;
    line-height: 1.62;
    color: var(--ak-ink-muted);
}
body.theme-light .ed-serif { font-family: var(--ak-serif); font-weight: 500; }

body.theme-light .eyebrow {
    font-family: var(--ak-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ak-primary);
}
body.theme-light .eyebrow-muted { color: var(--ak-ink-subtle); }

/* ---------- Layout rhythm ---------- */
body.theme-light .container { max-width: 1160px; }
body.theme-light .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--ak-hairline);
    padding-bottom: 12px;
    margin-bottom: 26px;
}
body.theme-light .section-head h2 { margin: 0; }

/* ---------- Navbar ---------- */
body.theme-light .navbar {
    background-color: var(--ak-canvas) !important;
    border-bottom: 1px solid var(--ak-hairline) !important;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    min-height: 74px;
}
body.theme-light .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ak-ink) !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}
body.theme-light .brand-mark {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ak-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; letter-spacing: -0.5px;
    flex-shrink: 0;
}
body.theme-light .brand-sub {
    display: block;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--ak-ink-subtle);
    margin-top: 1px;
}
body.theme-light .navbar .nav-link {
    color: var(--ak-ink-muted) !important;
    font-size: 14.5px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
body.theme-light .navbar .nav-link:hover { color: var(--ak-ink) !important; }
body.theme-light .navbar .nav-link.active {
    color: var(--ak-ink) !important;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 0 var(--ak-primary);
}

/* ---------- Buttons ---------- */
body.theme-light .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.62rem 1.4rem;
    font-size: 14.5px;
    transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease;
}
body.theme-light .btn-sm { padding: 0.4rem 1rem; font-size: 13.5px; }
body.theme-light .btn-lg { padding: 0.85rem 1.9rem; font-size: 15.5px; }
body.theme-light .btn-primary {
    background-color: var(--ak-primary);
    border-color: var(--ak-primary);
    color: #fff;
    font-weight: 700;
}
body.theme-light .btn-primary:hover,
body.theme-light .btn-primary:focus {
    background-color: var(--ak-primary-hover);
    border-color: var(--ak-primary-hover);
    color: #fff;
}
body.theme-light .btn-dark {
    background-color: var(--ak-ink);
    border-color: var(--ak-ink);
    color: var(--ak-canvas);
}
body.theme-light .btn-gold {
    background-color: var(--ak-gold);
    border-color: var(--ak-gold);
    color: var(--ak-ink);
    font-weight: 700;
}
body.theme-light .btn-gold:hover { background-color: #cc9130; border-color: #cc9130; color: var(--ak-ink); }
body.theme-light .btn-outline-secondary,
body.theme-light .btn-outline-primary {
    border-color: var(--ak-hairline-strong);
    color: var(--ak-ink);
    background: transparent;
}
body.theme-light .btn-outline-secondary:hover,
body.theme-light .btn-outline-primary:hover {
    background-color: var(--ak-surface-2);
    border-color: var(--ak-hairline-strong);
    color: var(--ak-ink);
}

/* ---------- Cards ---------- */
body.theme-light .card {
    background-color: var(--ak-surface-1);
    border: 1px solid var(--ak-hairline);
    border-radius: 4px;
    box-shadow: none;
}
body.theme-light .card-body { padding: 1.35rem; }
body.theme-light .card.card-hover:hover {
    border-color: var(--ak-hairline-strong);
    background-color: var(--ak-surface-1);
    box-shadow: 0 2px 10px rgba(27, 23, 19, 0.05);
}
body.theme-light .card-title { font-family: var(--ak-serif); font-weight: 500; letter-spacing: -0.3px; }
body.theme-light .card-media {
    height: 130px;
    background: linear-gradient(140deg, var(--ak-surface-3), var(--ak-hairline-strong));
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--ak-hairline);
}

/* Panels and bands */
body.theme-light .panel-soft {
    background: var(--ak-surface-2);
    border-radius: 4px;
    padding: 1.6rem 1.8rem;
}
body.theme-light .band-dark {
    background: var(--ak-ink);
    color: #f6efe6;
    border-radius: 4px;
    padding: 2rem 2.2rem;
}
body.theme-light .band-dark h1,
body.theme-light .band-dark h2,
body.theme-light .band-dark h3,
body.theme-light .band-dark .h2,
body.theme-light .band-dark .h3 { color: #f6efe6; }
body.theme-light .band-dark .eyebrow { color: var(--ak-gold); }
body.theme-light .band-dark .text-soft { color: #c4b8a9; }
body.theme-light .rule-accent { border-left: 3px solid var(--ak-primary); padding-left: 1.15rem; }

/* Stat blocks */
body.theme-light .stat { border-top: 2px solid var(--ak-ink); padding-top: 10px; }
body.theme-light .stat-num { font-family: var(--ak-serif); font-size: 2.1rem; line-height: 1; font-weight: 500; }
body.theme-light .stat-label { font-size: 12px; color: var(--ak-ink-subtle); margin-top: 4px; }

/* ---------- Badges ---------- */
body.theme-light .badge {
    border-radius: 2px;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35em 0.65em;
}
body.theme-light .badge.bg-info { background-color: var(--ak-surface-3) !important; color: #4a423a !important; }
body.theme-light .badge.bg-warning { background-color: #f3e4c6 !important; color: #8a6320 !important; }
body.theme-light .badge.bg-secondary { background-color: #ece5da !important; color: #6b6259 !important; }
body.theme-light .badge.bg-success { background-color: var(--ak-green) !important; color: #fff !important; }
body.theme-light .badge.bg-danger { background-color: #a02329 !important; color: #fff !important; }

/* ---------- Forms ---------- */
body.theme-light .form-control,
body.theme-light .form-select {
    background-color: var(--ak-surface-1);
    border: 1px solid var(--ak-hairline-strong);
    border-radius: 3px;
    color: var(--ak-ink);
    padding: 0.62rem 0.8rem;
    font-size: 14.5px;
}
body.theme-light .form-control:focus,
body.theme-light .form-select:focus {
    border-color: var(--ak-primary);
    box-shadow: 0 0 0 3px rgba(176, 81, 44, 0.14);
}
body.theme-light .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #4a423a;
    margin-bottom: 6px;
}
body.theme-light .form-text { color: var(--ak-ink-subtle); font-size: 12.5px; }
body.theme-light .form-check-input:checked {
    background-color: var(--ak-primary);
    border-color: var(--ak-primary);
}

/* ---------- Alerts ---------- */
body.theme-light .alert {
    border-radius: 0 4px 4px 0;
    border: 1px solid var(--ak-hairline);
    border-left-width: 3px;
    font-size: 14.5px;
}
body.theme-light .alert-info {
    background: var(--ak-surface-2);
    border-left-color: var(--ak-gold);
    color: var(--ak-ink-muted);
}
body.theme-light .alert-danger {
    background: #f8e6e2;
    border-left-color: #a02329;
    color: #7a1c21;
}
body.theme-light .alert-success {
    background: #e4efe6;
    border-left-color: var(--ak-green);
    color: #1e5c39;
}

/* ---------- List groups ---------- */
body.theme-light .list-group-item {
    background-color: var(--ak-surface-1);
    border-color: var(--ak-hairline);
    color: var(--ak-ink);
}

/* ---------- Footer ---------- */
body.theme-light .footer {
    background: var(--ak-ink) !important;
    color: #c4b8a9 !important;
    border-top: 0 !important;
    padding: 2.6rem 0 2rem;
    font-size: 13.5px;
    line-height: 1.7;
}
body.theme-light .footer a { color: #c4b8a9; text-decoration: none; }
body.theme-light .footer a:hover { color: #f6efe6; }
body.theme-light .footer .footer-head {
    color: #f6efe6;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 8px;
}
body.theme-light .footer .footer-brand {
    color: #f6efe6;
    font-weight: 700;
    letter-spacing: 0.5px;
}
body.theme-light .footer .footer-fine { color: #8b7f72; font-size: 11.5px; }

/* ---------- Links ---------- */
body.theme-light a { color: var(--bs-link-color); text-decoration: none; }
body.theme-light a:hover { color: var(--ak-primary-hover); }
body.theme-light ::selection { background: rgba(176, 81, 44, 0.18); color: var(--ak-ink); }

/* ---------- Tables ---------- */
body.theme-light .table > thead {
    background-color: var(--ak-surface-2) !important;
    color: var(--ak-ink-subtle) !important;
}
body.theme-light .table td, body.theme-light .table th { border-color: var(--ak-hairline); }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    body.theme-light h1, body.theme-light .h1 { font-size: 2.1rem; letter-spacing: -0.9px; }
    body.theme-light .display-5 { font-size: 2.3rem; }
    body.theme-light .display-6 { font-size: 2rem; }
    body.theme-light .band-dark { padding: 1.5rem 1.4rem; }
    body.theme-light .panel-soft { padding: 1.3rem; }
}

/* Brand logo (WordPress'ten devralinan orijinal logo) */
body.theme-light .brand-logo { height: 40px; width: auto; display: block; flex-shrink: 0; }
body.theme-dark  .brand-logo { height: 30px; width: auto; display: block; flex-shrink: 0; filter: brightness(1.15); }

/* Kayit ekranindaki hesap turu kartlari */
.acct-card { transition: border-color 120ms ease, box-shadow 120ms ease; }
body.theme-light .acct-card:hover { border-color: var(--ak-hairline-strong); }
body.theme-light .acct-card.acct-selected {
    border-color: var(--ak-primary);
    box-shadow: 0 0 0 3px rgba(176, 81, 44, 0.12);
}
body.theme-dark .acct-card.acct-selected {
    border-color: var(--ak-primary);
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.25);
}

/* ============================================================
   ORTAKLIK MERKEZI — avantajlar ve kurulus seridi
   ============================================================ */
body.theme-light .adv-num {
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--ak-primary);
    flex-shrink: 0;
    width: 2.2rem;
}
body.theme-light .adv-text {
    color: var(--ak-ink-muted);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
}

/* Yatay kayan kurulus seridi */
.org-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
    max-height: 340px;
}
.org-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: org-scroll 38s linear infinite;
}
.org-marquee:hover .org-track,
.org-marquee:focus-within .org-track { animation-play-state: paused; }

@keyframes org-scroll {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

body.theme-light .org-chip {
    display: block;
    background: var(--ak-surface-1);
    border: 1px solid var(--ak-hairline);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--ak-ink);
    transition: border-color 120ms ease;
}
body.theme-light .org-chip:hover { border-color: var(--ak-primary); color: var(--ak-ink); }
body.theme-light .org-chip-name { display: block; font-weight: 700; font-size: 14.5px; }
body.theme-light .org-chip-place { display: block; font-size: 12.5px; color: var(--ak-ink-subtle); margin-top: 2px; }
body.theme-light .org-chip-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #235f3c;              /* --ak-green kucuk punto icin 4.27'de kaliyordu */
    background: #e4efe6;
    border-radius: 2px;
    padding: 2px 6px;
}

/* Hareketi azalt tercihi acikken serit durur */
@media (prefers-reduced-motion: reduce) {
    .org-track { animation: none; }
    .org-marquee { max-height: none; overflow: auto; }
}

/* Kayit sayisi seridi doldurmuyorsa kaydirma da tekrar da yok (bkz. Partnership/Index.cshtml) */
.org-marquee-static {
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}
.org-marquee-static .org-track { animation: none; }


/* ---------- Partnership hub button in the visitor menu ----------
   Hub kendi basina bir urun; menude diger baglantilarla ayni agirlikta
   durmasin diye yumusak koseli dolu bir dugme. Zemin terracotta, yazi
   beyaz - btn-primary ile ayni kontrast. */
body.theme-light .navbar .nav-hub {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--ak-primary);
    color: #fff !important;
    border: 1px solid var(--ak-primary);
    border-radius: 12px;
    padding: 0.42rem 0.95rem;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 130ms ease, border-color 130ms ease;
}
body.theme-light .navbar .nav-hub:hover,
body.theme-light .navbar .nav-hub:focus {
    background-color: var(--ak-primary-hover);
    border-color: var(--ak-primary-hover);
    color: #fff !important;
}
body.theme-light .navbar .nav-hub::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--ak-gold);
    flex-shrink: 0;
}

/* Hub sayfasinin acilis bandi */
body.theme-light .hub-band {
    background: var(--ak-surface-2);
    border: 1px solid var(--ak-hairline);
    border-radius: 14px;
    padding: 1.6rem 1.75rem;
}
body.theme-light .hub-pillar {
    background: var(--ak-surface-1);
    border: 1px solid var(--ak-hairline);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    height: 100%;
}
body.theme-light .hub-pillar h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
body.theme-light .hub-step {
    border-top: 2px solid var(--ak-ink);
    padding-top: 0.75rem;
}
body.theme-light .hub-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--ak-ink-muted);
}
body.theme-light .hub-check::before {
    content: "¹3";
    color: var(--ak-primary);
    font-weight: 700;
    line-height: 1.5;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    body.theme-light .navbar .nav-hub { margin-top: 0.5rem; }
}

/* ---------- Ana sayfa acilis galerisi ----------
   Tek fotograf yerine wwwroot/img/home/gallery altindaki fotograflar doner.
   Fotograflar farkli oranlarda (yatay/dikey) oldugu icin `contain` ile tamami
   gorunur; arkada ayni fotografin bulanik kopyasi cerceveyi doldurur, boylece
   ne kirpma olur ne de bos bant. */
body.theme-light .hero-gallery {
    position: relative;
    height: 260px;
    border-radius: 4px;
    border: 1px solid var(--ak-hairline);
    background: var(--ak-surface-2);
    overflow: hidden;
}
body.theme-light .hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 900ms ease;
    pointer-events: none;
}
body.theme-light .hero-slide.is-active { opacity: 1; }
body.theme-light .hero-slide-bg {
    position: absolute;
    inset: -10%;                       /* blur kenarlarda seffaflasmasin */
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(0.75) brightness(0.85);
}
body.theme-light .hero-slide img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;               /* fotograf cerceveye sigar, kirpilmaz */
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    body.theme-light .hero-slide { transition: none; }
}
