body {
    display: flex;
    justify-content: center;
}

.feed-shell {
    width: min(100%, var(--container-width));
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--space-12) + 68px);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    /* very subtle outer shadow to lift the feed column off the canvas */
    box-shadow: 0 0 0 1px rgba(11, 35, 71, 0.03), 0 4px 32px rgba(11, 35, 71, 0.04);
    background: transparent;
}

html[data-theme="dark"] .feed-shell {
    box-shadow: none;
}

.feed-list {
    padding: 0 var(--space-4) var(--space-4);
    display: grid;
    gap: var(--space-3);
}

/* ─── Feed Toolbar ───────────────────────────────────────────────────────────── */
.feed-toolbar {
    margin: 0 var(--space-4) var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: var(--space-3);
}

.feed-toolbar__meta {
    display: grid;
    gap: 4px;
    position: relative;
    padding-left: 14px;
}

.feed-toolbar__meta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand-green) 0%, var(--cyan) 100%);
}

.feed-toolbar__eyebrow {
    color: var(--brand-navy);
    font-size: 1.0625rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    /* Corporate: tighter tracking ve daha net heading hiyerarşisi */
    line-height: 1.15;
}

html[data-theme="dark"] .feed-toolbar__eyebrow {
    color: var(--text);
}

.feed-toolbar__hint {
    color: var(--muted);
    font-size: var(--font-sm);
    line-height: 1.5;
}

.feed-toolbar__panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(0, 1.8fr) minmax(170px, auto);
    gap: var(--space-3);
    align-items: center;
}

/* ─── Search ─────────────────────────────────────────────────────────────────── */
.feed-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: var(--bg);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.feed-search:focus-within {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px var(--brand-green-ring);
}

.feed-search svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    color: var(--muted);
    flex: 0 0 auto;
}

.feed-search__input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    font-size: 14px;
}

.feed-search__input::placeholder {
    color: var(--muted-light);
}

/* ─── Filter Chips ───────────────────────────────────────────────────────────── */
.feed-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.feed-filter-chip {
    position: relative;
    min-height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-medium);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.78125rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.feed-filter-chip::before {
    content: "";
    position: absolute;
    inset: -7px -2px;
}

.feed-filter-chip:hover {
    transform: translateY(-1px);
    border-color: var(--brand-green);
    color: var(--brand-green-hover);
    background: var(--brand-green-muted);
}

.feed-filter-chip.is-active {
    background: var(--brand-green-muted);
    border-color: var(--brand-green);
    color: var(--brand-green-hover);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(26, 183, 105, 0.18);
}

html[data-theme="dark"] .feed-filter-chip {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .feed-filter-chip:hover {
    background: var(--brand-green-muted);
    border-color: rgba(16, 185, 129, 0.38);
    color: var(--brand-green-hover);
}

html[data-theme="dark"] .feed-filter-chip.is-active {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.42);
    color: var(--brand-green-hover);
}

/* ─── Sort Badge ─────────────────────────────────────────────────────────────── */
.feed-toolbar__sort {
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    color: var(--muted);
    font-size: var(--font-sm);
    font-weight: 700;
    white-space: nowrap;
}

.feed-toolbar__sort-label {
    color: var(--text);
    font-weight: 700;
}

html[data-theme="dark"] .feed-toolbar__sort {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

/* ─── Sort Pill Toggle (En Yeni / En Eski) ───────────────────────────────────── */
/* .feed-toolbar__sort sarmalayıcısının grid konumu ve dokunma hedefi kuralları
   korunur; .feed-sort yalnızca iç düzeni segment kontrolüne çevirir. */
.feed-sort {
    padding: 4px;
    gap: 4px;
    justify-content: center;
}

.feed-sort__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.feed-sort__pill:hover {
    color: var(--text);
}

.feed-sort__pill.is-active {
    background: var(--brand-green);
    color: #fff;
    box-shadow: 0 2px 10px rgba(26, 183, 105, 0.30);
}

.feed-sort__pill:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

html[data-theme="dark"] .feed-sort__pill.is-active {
    background: var(--brand-green);
    color: #06281a;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35);
}

/* ─── Empty State ────────────────────────────────────────────────────────────── */
.feed-empty {
    margin: 0 var(--space-4) var(--space-4);
}

.page-note {
    margin: var(--space-4) var(--space-4) 0;
    color: var(--muted);
    font-size: var(--font-sm);
    line-height: 1.6;
}

/* ─── FAB — Desktop (static block CTA) ──────────────────────────────────────── */
.fab {
    padding: var(--space-4) var(--space-4) 0;
}

.bottom-nav {
    display: none;
}

body.modal-open {
    position: fixed;
    width: 100%;
}
