:root {
    --ak-bg: #eef1f6;
    --ak-card: #fff;
    --ak-line: #e4e8ee;
    --ak-ink: #18222f;
    --ak-muted: #6a7785;
    --ak-primary: #123b66;
    --ak-primary-2: #2b6cb0;
    --ak-primary-soft: #e9f0f9;
    --ak-accent: #e20a26;
    --ak-radius: 16px;
    --ak-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .05);
    --ak-top-h: 58px;
    --ak-bottom-h: 62px;
}

.ak-body { margin: 0; background: var(--ak-bg); color: var(--ak-ink); font-family: Arial, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent; }
.ak-body a { color: inherit; text-decoration: none; }
.ak-body img { max-width: 100%; }
.ak-body .btn-primary { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; color: #fff; background: linear-gradient(135deg, var(--ak-primary), var(--ak-primary-2)); border-color: transparent; }
.ak-body .btn-primary:hover { filter: brightness(1.08); }
.ak-body .btn-outline-primary { color: var(--ak-primary); border-color: #b9c8da; background: #fff; }
.ak-body .btn-outline-primary:hover { color: #fff; background-color: var(--ak-primary); border-color: var(--ak-primary); }
.ak-body .btn-outline-secondary { color: #44505d; border-color: #c6cdd5; background: #fff; }
.ak-body .btn-outline-secondary:hover { color: #fff; background-color: #44505d; }
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-weight: 600; padding-inline: 16px; white-space: nowrap; }

/* ---------- Üst panel ---------- */
.ak-top { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--ak-line); }
.ak-top__inner { display: flex; align-items: center; gap: 10px; max-width: 1280px; height: var(--ak-top-h); margin: 0 auto; padding: 0 12px; }
.ak-brand img { display: block; height: 40px; width: auto; }
.ak-avatar-btn { display: inline-flex; padding: 0; border: 0; background: none; }
.ak-search { position: relative; flex: 1 1 auto; min-width: 0; }
.ak-search .bi { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--ak-muted); pointer-events: none; }
.ak-search input { width: 100%; height: 40px; padding: 0 16px 0 42px; border: 1px solid transparent; border-radius: 999px; background: #eceff4; color: var(--ak-ink); font-size: 15px; outline: none; transition: background .15s, box-shadow .15s, border-color .15s; }
.ak-search input:focus { border-color: var(--ak-primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(43, 108, 176, .14); }
.ak-nav { align-items: stretch; gap: 2px; height: var(--ak-top-h); margin-left: auto; }
.ak-nav__item { position: relative; display: flex; min-width: 68px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 10px; color: var(--ak-muted); font-size: 12px; font-weight: 600; transition: color .15s; }
.ak-nav__item .bi { font-size: 20px; line-height: 1; }
.ak-nav__item:hover { color: var(--ak-primary); }
.ak-nav__item.is-active { color: var(--ak-primary); }
.ak-nav__item.is-active::after { content: ""; position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--ak-primary), var(--ak-accent)); }
.ak-top__account { align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--ak-line); }
.ak-me { display: inline-flex; align-items: center; gap: 8px; max-width: 200px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: none; color: var(--ak-ink); font-size: 13px; font-weight: 600; }
.ak-me:hover { background: #eceff4; }
.ak-me__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Avatar ---------- */
.ak-avatar { display: inline-flex; width: 44px; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: var(--ak-primary); color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(18, 59, 102, .12); }
.ak-avatar--sm { width: 36px; height: 36px; font-size: 15px; }
.ak-avatar--lg { width: 76px; height: 76px; margin-top: -38px; font-size: 30px; position: relative; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(16, 24, 40, .15); }
.ak-avatar--ghost { background: #dfe4ea; color: #5b6672; }

/* ---------- Yerleşim ---------- */
.ak-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 1280px; margin: 0 auto; padding: 8px 8px calc(var(--ak-bottom-h) + env(safe-area-inset-bottom) + 16px); }
.ak-app { display: contents; }
.ak-feed { display: flex; min-width: 0; flex-direction: column; gap: 10px; }

.ak-card { overflow: hidden; background: var(--ak-card); border-radius: var(--ak-radius); box-shadow: var(--ak-shadow); }
.ak-card__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ak-card__title .bi { color: var(--ak-primary-2); }

/* ---------- Sol panel ---------- */
.ak-left { --bs-offcanvas-width: 330px; background: var(--ak-bg); }
.ak-left .offcanvas-header { padding: 8px 12px 0; }
.ak-left .offcanvas-body { display: flex; flex-direction: column; gap: 12px; padding: 8px 12px 24px; overflow-y: auto; }
.ak-left .offcanvas-body > * { flex: 0 0 auto; }
.ak-member { position: relative; padding-bottom: 18px; text-align: center; }
.ak-member__cover { height: 64px; background: radial-gradient(circle at 85% 20%, rgba(240, 163, 58, .65), transparent 45%), linear-gradient(120deg, var(--ak-primary), var(--ak-primary-2) 65%, #5b8fd6); }
.ak-member__name { margin: 10px 12px 4px; font-size: 17px; font-weight: 700; word-break: break-word; }
.ak-member__hint { margin: 0 16px 12px; color: var(--ak-muted); font-size: 13px; }
.ak-member__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 12px 0; }
.ak-list-card { padding: 14px 8px 8px; }
.ak-list-card .ak-card__title { padding: 0 10px 8px; }
.ak-list { margin: 0; padding: 0; list-style: none; }
.ak-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #364351; font-size: 14px; transition: background .15s, color .15s; }
.ak-list a:hover { background: var(--ak-primary-soft); color: var(--ak-primary); }
.ak-list .bi { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--ak-primary-soft); color: var(--ak-primary); font-size: 14px; }
.ak-copy { margin: 0; padding: 4px 16px 8px; color: var(--ak-muted); font-size: 12px; text-align: center; }

/* ---------- Mobil sektör şeridi ---------- */
.ak-stories-wrap { padding: 14px 0 12px; border-radius: var(--ak-radius); background: #fff; box-shadow: var(--ak-shadow); }
.ak-stories .swiper-slide { width: 82px; }
.ak-story { --c1: #f0a33a; --c2: #e20a26; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.ak-story:nth-child(6n+2) { --c1: #22c1c3; --c2: #2b6cb0; }
.ak-story:nth-child(6n+3) { --c1: #a855f7; --c2: #ec4899; }
.ak-story:nth-child(6n+4) { --c1: #84cc16; --c2: #16a34a; }
.ak-story:nth-child(6n+5) { --c1: #38bdf8; --c2: #6366f1; }
.ak-story:nth-child(6n) { --c1: #fb923c; --c2: #dc2626; }
.ak-story__ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 22px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 27px; box-shadow: 0 6px 14px -4px var(--c2); transition: transform .15s; }
.ak-story:active .ak-story__ico { transform: scale(.94); }
.ak-story__txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 78px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: #364351; }

/* ---------- Mobil reklam & haber ---------- */
.ak-mads { padding: 10px 0 0; border-radius: var(--ak-radius); background: #fff; box-shadow: var(--ak-shadow); overflow: hidden; }
.ak-mads__swiper { padding: 0 10px 22px; }
.ak-mads__item { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 12px; background: #dfe3e8; }
.ak-mads__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-mads__tag { position: absolute; top: 8px; right: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
.ak-mads .swiper-pagination { bottom: 4px; }
.ak-mads .swiper-pagination-bullet-active { background: var(--ak-primary); }
.ak-mnews { padding: 14px 0 16px; }
.ak-mnews__head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 12px; }
.ak-mnews__head a { color: var(--ak-accent); font-size: 13px; font-weight: 700; }
.ak-mnews__swiper .swiper-slide { width: 156px; }
.ak-mnews__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #dfe3e8; }
.ak-mnews__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-mnews__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 7px; font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ---------- Gönderi ---------- */
.ak-post__head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 0; }
.ak-post__who { min-width: 0; flex: 1 1 auto; }
.ak-post__line { font-size: 14px; line-height: 1.35; }
.ak-post__action { color: var(--ak-muted); }
.ak-post__meta { display: flex; align-items: center; margin-top: 1px; color: var(--ak-muted); font-size: 12px; }
.ak-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--ak-primary-soft); color: var(--ak-primary); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ak-badge--member { background: #e3f6ec; color: #11703f; }
.ak-badge--news { background: #fde9ec; color: var(--ak-accent); }
.ak-badge--ad { background: #fff2dc; color: #9a5b00; }
.ak-badge--product { background: #efe8fc; color: #5b2fb0; }
.ak-post__body { padding: 12px 14px 12px; }
.ak-post__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; word-break: break-word; }
.ak-post__title a:hover { color: var(--ak-primary-2); }
.ak-post__text { margin: 0 0 4px; font-size: 14.5px; line-height: 1.55; color: #36424f; white-space: pre-line; word-break: break-word; }
.ak-post__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ak-more { margin: 0 0 4px; padding: 0; border: 0; background: none; color: var(--ak-primary-2); font-size: 14px; font-weight: 600; }
.ak-more:hover { text-decoration: underline; }
.ak-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 11px; border-radius: 999px; background: #eceff4; color: #44505d; font-size: 12.5px; font-weight: 600; }
.ak-tag--on { position: absolute; left: 12px; bottom: 12px; background: rgba(15, 23, 34, .68); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ak-post__tagrow { display: flex; justify-content: flex-end; padding: 0 14px 12px; }
.ak-media { position: relative; display: block; aspect-ratio: 4 / 3; max-height: 560px; width: 100%; overflow: hidden; background: #e9edf1; }
.ak-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
a.ak-media:hover img { transform: scale(1.025); }
.ak-media--product { background: #f6f7f9; }
.ak-media--product img { object-fit: contain; }
.ak-post__actions { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--ak-line); }
.ak-act { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 10px; background: none; color: #56626f; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.ak-act:hover { background: #f1f4f8; color: var(--ak-primary); }
.ak-act--wa .bi { color: #25d366; font-size: 17px; }
.ak-skeleton .ak-media { height: 220px; display: block; }
.ak-skeleton .ak-post__body span { display: block; margin-bottom: 8px; height: 14px; }
.ak-skeleton .ak-post__who span { display: block; margin-bottom: 6px; height: 12px; }

.ak-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; color: var(--ak-muted); font-size: 14px; text-align: center; }
.ak-state p { margin: 0; }
.ak-state .bi { font-size: 32px; }
.ak-sentinel { height: 1px; }

/* ---------- Alt menü (mobil) ---------- */
.ak-bottom { position: fixed; z-index: 1030; right: 0; bottom: 0; left: 0; display: flex; padding: 0 6px env(safe-area-inset-bottom); border-radius: 20px 20px 0 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -6px 24px rgba(16, 24, 40, .1); }
.ak-bottom__item { display: flex; min-height: var(--ak-bottom-h); flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ak-muted); font-size: 11px; font-weight: 600; }
.ak-bottom__item .bi { font-size: 22px; line-height: 1; }
.ak-bottom__item.is-active { color: var(--ak-accent); }
.ak-bottom__item--add .bi { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-top: -22px; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(135deg, var(--ak-accent), #f0a33a); color: #fff; font-size: 22px; box-shadow: 0 6px 14px rgba(226, 10, 38, .35); }
.ak-bottom__item--add { color: var(--ak-primary); }

/* ---------- Sağ panel ---------- */
.ak-right { display: flex; flex-direction: column; gap: 14px; }
.ak-right > .ak-card + .ak-card { margin-top: 16px; }
.ak-side { padding: 16px; }
.ak-side__sub { margin: 2px 0 10px; color: var(--ak-muted); font-size: 12.5px; }
.ak-news { margin: 0; padding: 0; list-style: none; }
.ak-news li + li { border-top: 1px solid #eff1f4; }
.ak-news a { display: flex; gap: 12px; padding: 10px 0; }
.ak-news img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; object-fit: cover; background: #e9edf1; }
.ak-news__txt { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.ak-news__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ak-news a:hover .ak-news__title { color: var(--ak-primary-2); }
.ak-news__date { color: var(--ak-muted); font-size: 11.5px; }
.ak-side__all { display: inline-flex; align-items: center; margin-top: 6px; color: var(--ak-primary-2); font-size: 13px; font-weight: 700; }
.ak-menu__list, .ak-menu__sub { margin: 0; padding: 0; list-style: none; }
.ak-menu__list { margin-top: 8px; }
.ak-menu__link { display: block; padding: 7px 4px; font-size: 14px; font-weight: 700; }
a.ak-menu__link:hover { color: var(--ak-primary-2); }
.ak-menu__link--head { color: var(--ak-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ak-menu__sub { margin-bottom: 4px; padding-left: 10px; border-left: 2px solid var(--ak-line); }
.ak-menu__sub a { display: block; padding: 6px 10px; border-radius: 8px; color: #364351; font-size: 13.5px; }
.ak-menu__sub a:hover { background: var(--ak-primary-soft); color: var(--ak-primary); }
.ak-ad__item { position: relative; display: block; margin-top: 12px; overflow: hidden; border-radius: 12px; background: #f6f7f9; }
.ak-ad__item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ak-ad__title { display: block; padding: 8px 10px; font-size: 13px; font-weight: 600; }

/* ---------- Masaüstü ---------- */
@media (min-width: 992px) {
    :root { --ak-top-h: 62px; }
    .ak-top__inner { padding: 0 20px; }
    .ak-search { flex: 0 1 280px; }
    .ak-layout { grid-template-columns: 250px minmax(0, 1fr) 300px; align-items: start; gap: 22px; padding: 20px 20px 40px; }
    .ak-feed { gap: 16px; }
    /* Yan paneller sabit kalmaz ve kendi içinde kaydırılmaz; tamamı açık akar. */
    .ak-left, .ak-right { align-self: start; }
    .ak-left { background: transparent; }
    .ak-left .offcanvas-body { overflow: visible; padding: 0; gap: 16px; }
    .ak-post { transition: box-shadow .2s; }
    .ak-post:hover { box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 12px 30px rgba(16, 24, 40, .08); }
    .ak-post__head { padding: 16px 18px 0; }
    .ak-post__body { padding: 12px 18px 14px; }
    .ak-post__tagrow { padding: 0 18px 14px; }
    .ak-post__title { font-size: 20px; }
    .ak-media { aspect-ratio: 16 / 10; }
}

@media (min-width: 1200px) {
    .ak-layout { grid-template-columns: 270px minmax(0, 1fr) 320px; }
}

@media (prefers-reduced-motion: reduce) {
    .ak-media img, .ak-story__ico, .ak-post { transition: none; }
}
