/* forum/index.html — Droptan Forum kabuk */

.forum-skeleton-card {
    background: var(--forum-bg-card, #fff);
    border: 1px solid var(--forum-border, #e4e4e7);
    border-radius: var(--forum-radius-lg, 1rem);
    padding: 1.25rem;
    animation: forum-skeleton-pulse 1.4s ease-in-out infinite;
}

.forum-skeleton-line {
    height: 0.75rem;
    border-radius: var(--forum-radius-sm, 0.5rem);
    background: linear-gradient(
        90deg,
        var(--forum-skeleton, #e4e4e7) 0%,
        var(--forum-skeleton-shine, #f4f4f5) 50%,
        var(--forum-skeleton, #e4e4e7) 100%
    );
    background-size: 200% 100%;
    animation: forum-skeleton-shimmer 1.2s ease-in-out infinite;
}

.forum-skeleton-line--title {
    height: 1rem;
    width: 70%;
    margin-top: 0.75rem;
}

.forum-skeleton-line--body {
    width: 100%;
    margin-top: 0.5rem;
}

.forum-skeleton-line--short {
    width: 40%;
    margin-top: 0.5rem;
}

@keyframes forum-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes forum-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
}

.forum-empty-illus {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--forum-brand-soft, rgba(204, 51, 50, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forum-brand, #cc3332);
    font-size: 1.75rem;
    font-weight: 800;
}

.forum-feed-sentinel {
    height: 1px;
    width: 100%;
}

.forum-like-btn.forum-like-btn--active {
    color: var(--forum-brand, #cc3332);
}

.forum-like-btn.forum-like-pop {
    animation: forum-like-pop 0.35s ease;
}

@keyframes forum-like-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.forum-bookmark-btn--active {
    color: var(--forum-brand, #cc3332);
    fill: var(--forum-brand-muted, rgba(204, 51, 50, 0.14));
}

.forum-compose-preview-img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: var(--forum-radius-md, 0.75rem);
    border: 1px solid var(--forum-border, #e4e4e7);
}

.forum-tag-suggest {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    background: #fff;
    border: 1px solid var(--forum-border, #e4e4e7);
    border-radius: var(--forum-radius-md, 0.75rem);
    box-shadow: var(--forum-shadow-sm);
    max-height: 8rem;
    overflow: auto;
}

.forum-poll-option-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.forum-poll {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.forum-poll--compact .forum-poll-option {
    font-size: 0.75rem;
}
.forum-poll-option {
    position: relative;
}
.forum-poll-bar {
    pointer-events: none;
    transition: width 0.25s ease;
}

.forum-quote-block {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.forum-quote-block:hover {
    border-color: rgba(204, 51, 50, 0.35);
    background: rgba(204, 51, 50, 0.04);
}

/* Okuma yoğunluğu — yalnızca rahat (sabit) */
html[data-forum-density='comfortable'] .forum-density-text,
.forum-density-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Sabit gönderi (adım 180) */
.forum-post--pinned {
    border-color: rgba(204, 51, 50, 0.35);
    box-shadow: 0 0 0 1px rgba(204, 51, 50, 0.12);
}

.forum-offline-banner {
    background: #18181b;
    color: #fafafa;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
}

.forum-compose-fab {
    position: fixed;
    right: 1rem;
    bottom: 4.5rem;
    z-index: 35;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    border: none;
    color: #fff;
    background: var(--forum-brand, #cc3332);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .forum-compose-fab { display: none; }
}

.forum-error-fallback {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

@media print {
    .forum-offline-banner,
    .forum-compose-fab,
    nav[aria-label='Ana menü'],
    .forum-preview-banner { display: none !important; }
    article { break-inside: avoid; }
}
.forum-body,
body.forum-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f4f4f5;
    color: #18181b;
}

html.forum-auth-pending #root {
    visibility: visible;
}

html.forum-auth-pending #root > :not(#initial-placeholder) {
    visibility: hidden;
}

::selection {
    background-color: #cc3332;
    color: #fff;
}

.forum-ph {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(165deg, #fafafa 0%, #fff 45%, #f4f4f5 100%);
}

.forum-ph-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 18rem;
    width: 100%;
}

.forum-ph-brand {
    margin: 0 0 1.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #3f3f46;
}

.forum-ph-msg {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #71717a;
    line-height: 1.5;
}

.forum-ph-logo-img,
.forum-gate-logo-img,
.forum-brand-logo__img {
    display: block;
    width: auto;
    height: 2.25rem;
    max-width: 7.5rem;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.forum-ph-logo-img {
    height: 2.5rem;
    max-width: 11rem;
    margin-bottom: 1rem;
}

.forum-gate-logo-img {
    margin: 0 auto 0.75rem;
}

.forum-brand-logo__img {
    height: 2rem;
    max-width: 6.5rem;
    margin: 0;
}

@media (min-width: 640px) {
    .forum-brand-logo__img {
        height: 2.25rem;
        max-width: 7.5rem;
    }
}

.forum-app-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e4e4e7;
    padding-top: env(safe-area-inset-top, 0px);
    overflow: visible;
}

.forum-app-header--embedded {
    border-bottom-color: #f4f4f5;
    flex-shrink: 0;
}

.forum-page-shell > .forum-app-header--embedded {
    border-bottom: 1px solid #f4f4f5;
}

.forum-header-shell {
    display: grid;
    align-items: center;
    gap: 0.5rem 0.625rem;
    padding: 0.5rem 0;
}

.forum-header-shell--main {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    min-height: 3.25rem;
    padding-bottom: 0.5rem;
}

.forum-header-shell--main .forum-header__left {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
}

.forum-header-shell--main .forum-header__brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
}

.forum-header-shell--main .forum-header__actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.forum-header-shell--main .forum-header__brand .forum-brand-logo__img {
    height: 1.75rem;
    max-width: 5.75rem;
}

.forum-header__account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.625rem;
    border: none;
    background: transparent;
    color: #52525b;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.forum-header__account-btn:hover {
    background: #f4f4f5;
    color: #18181b;
}

.forum-header__account-btn--active {
    background: rgba(204, 51, 50, 0.08);
    color: #cc3332;
}

.forum-header__auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.forum-header__auth-btn--ghost {
    color: #52525b;
    background: transparent;
    border: 1px solid transparent;
}

.forum-header__auth-btn--ghost:hover {
    background: #f4f4f5;
    color: #18181b;
}

.forum-header__auth-btn--primary {
    color: #fff;
    background: #cc3332;
    border: 1px solid #cc3332;
}

.forum-header__auth-btn--primary:hover {
    background: #a82827;
    border-color: #a82827;
}

.forum-guest-compose {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.forum-guest-compose__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    color: #52525b;
    line-height: 1.45;
}

.forum-guest-compose__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    border: none;
    background: #cc3332;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.forum-guest-compose__btn:hover {
    background: #a82827;
}

.forum-main-search {
    width: 100%;
}

.forum-main-search__wrap {
    position: relative;
}

.forum-main-search__icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #a1a1aa;
    pointer-events: none;
}

.forum-main-search__input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 0.875rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    font-size: 0.875rem;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-main-search__input:focus {
    border-color: rgba(204, 51, 50, 0.35);
    box-shadow: 0 0 0 3px rgba(204, 51, 50, 0.1);
}

.forum-search-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.forum-search-panel__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    background: #f4f4f5;
}

.forum-search-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.forum-search-user-card:hover {
    border-color: rgba(204, 51, 50, 0.35);
    box-shadow: 0 2px 8px rgba(204, 51, 50, 0.08);
}

.forum-search-user-card__avatar {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(204, 51, 50, 0.15), #f4f4f5);
    color: #cc3332;
    font-size: 0.875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sol menü — konu başlıkları */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.forum-sidebar__head {
    padding: 0 0.25rem 0.875rem;
    border-bottom: 1px solid #f4f4f5;
    margin-bottom: 0.875rem;
}

.forum-sidebar__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #18181b;
    line-height: 1.3;
}

.forum-sidebar__sub {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.forum-sidebar__search {
    position: relative;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.forum-sidebar__search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.875rem;
    height: 0.875rem;
    color: #a1a1aa;
    pointer-events: none;
}

.forum-sidebar__search-input {
    width: 100%;
    padding: 0.5rem 0.65rem 0.5rem 2.1rem;
    border-radius: 0.625rem;
    border: 1px solid #e4e4e7;
    background: #fafafa;
    font-size: 0.8125rem;
    color: #18181b;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.forum-sidebar__search-input:focus {
    border-color: rgba(204, 51, 50, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204, 51, 50, 0.08);
}

.forum-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
    padding-bottom: 0.5rem;
}

.forum-sidebar-all {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.625rem;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3f3f46;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.forum-sidebar-all:hover {
    background: #fafafa;
    border-color: #d4d4d8;
}

.forum-sidebar-all--active {
    background: rgba(204, 51, 50, 0.08);
    border-color: rgba(204, 51, 50, 0.28);
    color: #a82827;
}

.forum-sidebar-all__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: #f4f4f5;
    color: #71717a;
    flex-shrink: 0;
}

.forum-sidebar-all--active .forum-sidebar-all__icon {
    background: rgba(204, 51, 50, 0.14);
    color: #cc3332;
}

.forum-sidebar__hint {
    margin: 0;
    padding: 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #a1a1aa;
}

.forum-sidebar__empty {
    margin: 0;
    padding: 0.75rem 0.35rem;
    font-size: 0.75rem;
    color: #a1a1aa;
}

.forum-sidebar-section {
    margin-top: 0.35rem;
}

.forum-sidebar-section__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.4rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.forum-sidebar-section__count {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 700;
    color: #d4d4d8;
    letter-spacing: 0;
    text-transform: none;
}

.forum-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.forum-sidebar-topic {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    border-radius: 0.5rem;
    transition: background 0.12s;
}

.forum-sidebar-topic:hover {
    background: rgba(244, 244, 245, 0.9);
}

.forum-sidebar-topic--active {
    background: rgba(204, 51, 50, 0.07);
}

.forum-sidebar-topic--active .forum-sidebar-topic__main::before {
    opacity: 1;
}

.forum-sidebar-topic__main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.35rem 0.4rem 0.5rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.forum-sidebar-topic__main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    border-radius: 2px;
    background: #cc3332;
    opacity: 0;
    transition: opacity 0.12s;
}

.forum-sidebar-topic__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.4375rem;
    flex-shrink: 0;
}

.forum-sidebar-topic__label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #3f3f46;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-sidebar-topic--active .forum-sidebar-topic__label {
    font-weight: 600;
    color: #a82827;
}

.forum-sidebar-topic__star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.15rem;
    border: none;
    border-radius: 0.4375rem;
    background: transparent;
    color: #d4d4d8;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 1;
    transition: color 0.12s, background 0.12s;
}

@media (hover: hover) and (pointer: fine) {
    .forum-sidebar-topic__star {
        opacity: 0;
    }

    .forum-sidebar-topic:hover .forum-sidebar-topic__star,
    .forum-sidebar-topic__star--on {
        opacity: 1;
    }
}

.forum-sidebar-topic__star:hover {
    background: rgba(204, 51, 50, 0.08);
    color: #cc3332;
}

.forum-sidebar-topic__star--on {
    color: #cc3332;
    opacity: 1;
}

.forum-sidebar-topic__star--on svg {
    fill: currentColor;
}

.forum-page-sidebar--drawer {
    background: #fff;
    border-right: 1px solid #e4e4e7;
    padding: 1rem;
}

/* Ana akış + konu paneli — tek sayfa kabuğu */
.forum-page-shell {
    --forum-shell-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: var(--forum-shell-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
    overflow: visible;
}

.forum-page-shell > .forum-app-header--embedded {
    border-top-left-radius: var(--forum-shell-radius);
    border-top-right-radius: var(--forum-shell-radius);
}

.forum-page-shell > .forum-site-footer {
    border-bottom-left-radius: var(--forum-shell-radius);
    border-bottom-right-radius: var(--forum-shell-radius);
}

.forum-page-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.forum-page-sidebar {
    flex-shrink: 0;
    width: 100%;
}

.forum-page-main {
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .forum-page-shell {
        gap: 0;
    }

    .forum-page-body {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .forum-page-sidebar {
        width: 15.5rem;
        position: sticky;
        top: 5.25rem;
        align-self: stretch;
        max-height: calc(100vh - 6.5rem);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-right: 1px solid #ececee;
        background: linear-gradient(180deg, #fafafa 0%, #fff 12%);
        padding: 1rem 0.75rem 1rem 1rem;
    }

    .forum-page-sidebar .forum-sidebar {
        flex: 1;
        min-height: 0;
    }

    .forum-page-sidebar .forum-sidebar__nav {
        max-height: none;
    }

    .forum-page-main {
        padding: 1rem 1.25rem 1.25rem;
    }
}

.forum-header-shell--post {
    grid-template-columns: 2.5rem 1fr 2.5rem;
    min-height: 3.25rem;
    padding-bottom: 0.5rem;
}

.forum-header-shell--post .forum-header__back {
    grid-column: 1;
}

.forum-header-shell--post .forum-header__post-label {
    grid-column: 2;
    justify-self: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.01em;
}

.forum-header-shell--post .forum-header__spacer {
    grid-column: 3;
    width: 2.5rem;
}

.forum-header-shell--post .forum-header__brand {
    display: none;
}

.forum-header__icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    color: #52525b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.forum-header__icon-btn:hover {
    background: #f4f4f5;
}

.forum-header__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.forum-header__search-input-wrap {
    position: relative;
}

.forum-header__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #a1a1aa;
    pointer-events: none;
}

.forum-header__search-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.375rem;
    border-radius: 0.75rem;
    border: 1px solid #e4e4e7;
    background: #fafafa;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.forum-header__search-input:focus {
    border-color: rgba(204, 51, 50, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204, 51, 50, 0.1);
}

.forum-header__actions {
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.forum-mobile-drawer {
    padding-top: calc(env(safe-area-inset-top, 0px) + 6.5rem);
}

.safe-area-pb {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.forum-notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: none;
    padding: 0;
    background: rgba(24, 24, 27, 0.35);
    cursor: default;
}

.forum-notif-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 3.75rem);
    right: 0.75rem;
    left: auto;
    width: min(20rem, calc(100vw - 1.5rem));
    max-height: min(24rem, calc(100vh - 5rem - env(safe-area-inset-top, 0px)));
    z-index: 50;
}

@media (min-width: 1024px) {
    .forum-notif-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 0.5rem;
        width: 20rem;
        max-width: calc(100vw - 2rem);
        max-height: 18rem;
    }

    .forum-notif-backdrop {
        display: none;
    }
}

@media (min-width: 1024px) {
    .forum-header-shell--main {
        height: 4rem;
        padding-bottom: 0;
        gap: 1rem;
    }

    .forum-header-shell--main .forum-header__brand .forum-brand-logo__img {
        height: 2.25rem;
        max-width: 7.5rem;
    }

    .forum-header-shell--post {
        display: flex;
        height: 4rem;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0;
    }

    .forum-header-shell--post .forum-header__back,
    .forum-header-shell--post .forum-header__post-label,
    .forum-header-shell--post .forum-header__spacer {
        display: none;
    }

    .forum-header-shell--post .forum-header__brand {
        display: block;
    }
}

.forum-ph-spinner {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
}

.forum-ph-ring {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.forum-ph-ring--outer {
    inset: 0;
    border: 3px solid rgba(204, 51, 50, 0.1);
    border-top-color: #cc3332;
    border-right-color: rgba(204, 51, 50, 0.28);
    animation: forum-spin 0.9s linear infinite;
}

.forum-ph-ring--inner {
    inset: 0.5rem;
    border: 2px solid rgba(204, 51, 50, 0.08);
    border-bottom-color: rgba(204, 51, 50, 0.45);
    border-left-color: transparent;
    animation: forum-spin 1.15s linear infinite reverse;
}

.forum-ph p {
    margin: 0;
    font-size: 0.75rem;
    color: #71717a;
}

@keyframes forum-spin {
    to { transform: rotate(360deg); }
}

/* Ön hazırlık kapı ekranı */
.forum-gate-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(165deg, #fafafa 0%, #fff 42%, #f4f4f5 100%);
}

.forum-gate-card {
    max-width: 26rem;
    width: 100%;
    text-align: center;
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}


.forum-gate-badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a82827;
    background: rgba(204, 51, 50, 0.1);
    border-radius: 999px;
}

.forum-gate-msg {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #52525b;
}

.forum-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
}

.forum-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #cc3332;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.15s;
}

.forum-gate-btn:hover {
    background: #a82827;
}

.forum-gate-btn--ghost {
    color: #cc3332;
    background: #fff;
    border: 1px solid rgba(204, 51, 50, 0.35);
}

.forum-gate-btn--ghost:hover {
    background: rgba(204, 51, 50, 0.06);
}

.forum-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-article-body {
    max-width: 42rem;
}

.forum-news-sources {
    max-width: 42rem;
    margin-left: auto;
}

.forum-scroll-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.forum-scroll-thin::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 999px;
}

.forum-site-footer {
    margin-top: 0;
    border-top: 1px solid #e4e4e7;
    background: transparent;
}

.forum-site-footer__inner {
    padding: 1.5rem 0 2.5rem;
}

@media (min-width: 1024px) {
    .forum-site-footer {
        border-top-color: #f4f4f5;
        background: rgba(250, 250, 250, 0.45);
    }

    .forum-site-footer__inner {
        padding: 1.25rem 1.25rem 1rem;
    }
}

.forum-site-footer__grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .forum-site-footer__grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 2rem;
    }
}

.forum-site-footer__tagline {
    margin: 0.75rem 0 0;
    max-width: 18rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #71717a;
}

.forum-site-footer__nav-title {
    margin: 0 0 0.65rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.forum-site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.forum-site-footer__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #52525b;
    text-decoration: none;
    transition: color 0.15s;
}

.forum-site-footer__link:hover,
.forum-site-footer__link--accent {
    color: #cc3332;
}

.forum-site-footer__support-text {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #71717a;
}

.forum-site-footer__copy {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #f4f4f5;
    font-size: 0.75rem;
    color: #a1a1aa;
    text-align: center;
}

@media (min-width: 768px) {
    .forum-site-footer__copy {
        text-align: left;
    }
}
