/* ==================== FORUM STYLES ==================== */
/* Discourse + Twitter/X + Bento Grid Tasarimi */

/* CSS Variables - Discourse Style */
:root {
    --bm-radius-sm: 6px;
    --bm-radius-md: 10px;
    --bm-radius-lg: 14px;
    --bm-radius-xl: 18px;
    --bm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bm-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    --bm-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --bm-transition-fast: 0.12s ease;
    --bm-transition-normal: 0.2s ease;
    --bm-transition-slow: 0.3s ease;

    /* Solid accent colors */
    --bm-accent-1: #6366f1;
    --bm-accent-2: #ec4899;
    --bm-accent-3: #0ea5e9;
    --bm-accent-4: #10b981;
    --bm-accent-5: #f59e0b;
    --bm-accent-6: #8b5cf6;

    /* Typography */
    --bm-font-size-xs: 0.75rem;
    --bm-font-size-sm: 0.8125rem;
    --bm-font-size-base: 0.9375rem;
    --bm-font-size-lg: 1.0625rem;
    --bm-font-size-xl: 1.25rem;
    --bm-font-size-2xl: 1.625rem;
    --bm-line-height: 1.65;
}

[data-theme="dark"] {
    --bm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --bm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --bm-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    --bm-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Main Forum Container */
.bm-forum {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

/* Forum acikken normal scroll davranisi */
body.forum-active {
    overflow: auto;
}

.forum-active .main-content {
    overflow: visible;
}

/* Forum genis gorunum */
body.forum-wide .container,
body.forum-wide .main-content,
body.forum-wide .tool-content,
body.forum-wide .forum-container,
body.forum-wide .forum-layout {
    max-width: 100% !important;
    width: 100% !important;
}

body.forum-wide .container {
    padding: 0 32px;
}

body.forum-wide .tool-content {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 10px;
    box-shadow: none;
    background: transparent;
}

body.forum-wide .forum-layout {
    min-height: calc(100vh - 150px);
    border-radius: var(--bm-radius-lg);
}

/* Forum Header - Discourse Style */
.bm-forum__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    border-radius: var(--bm-radius-lg) var(--bm-radius-lg) 0 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.bm-forum__header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bm-forum__back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--bm-radius-md);
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all var(--bm-transition-fast);
}

.bm-forum__back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bm-forum__back-btn svg {
    width: 18px;
    height: 18px;
}

.bm-forum__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bm-forum__logo-icon {
    width: 42px;
    height: 42px;
    background: var(--bm-accent-1);
    border-radius: var(--bm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-forum__logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.bm-forum__logo-text {
    font-size: var(--bm-font-size-xl);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* Forum Tabs - Discourse Style */
.bm-forum__tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-body);
    padding: 5px;
    border-radius: var(--bm-radius-md);
}

.bm-forum__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: var(--bm-radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--bm-font-size-sm);
    cursor: pointer;
    transition: all var(--bm-transition-fast);
}

.bm-forum__tab svg {
    width: 17px;
    height: 17px;
}

.bm-forum__tab:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.bm-forum__tab.active {
    background: var(--primary);
    color: white;
}

.bm-forum__tab.active svg {
    color: white;
}

/* Forum Layout - Sidebar + Content */
.bm-forum__layout {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border-radius: 0 0 var(--bm-radius-lg) var(--bm-radius-lg);
    overflow: visible;
    border: 1px solid var(--border);
    border-top: none;
    flex: 1;
}

/* Forum Sidebar - Compact Discourse Style */
.bm-forum__sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-body);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.bm-forum__sidebar-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.bm-forum__sidebar-section:last-child {
    border-bottom: none;
}

.bm-forum__sidebar-title {
    font-size: var(--bm-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 0 6px;
}

.bm-forum__sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--bm-radius-sm);
    cursor: pointer;
    transition: all var(--bm-transition-fast);
    color: var(--text);
}

.bm-forum__sidebar-item:hover {
    background: var(--bg-card-hover);
}

.bm-forum__sidebar-item.active {
    background: var(--primary);
    color: white;
}

.bm-forum__sidebar-item.active svg {
    color: white;
}

.bm-forum__sidebar-item svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
    flex-shrink: 0;
}

.bm-forum__sidebar-item-text {
    flex: 1;
    min-width: 0;
}

.bm-forum__sidebar-item-name {
    font-weight: 500;
    font-size: var(--bm-font-size-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-forum__sidebar-item-count {
    font-size: var(--bm-font-size-xs);
    opacity: 0.7;
}

/* Forum Content Area */
.bm-forum__content {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}

/* Content Header - Discourse Style */
.bm-forum__content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
}

.bm-forum__content-title {
    font-size: var(--bm-font-size-2xl);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bm-forum__content-subtitle {
    font-size: var(--bm-font-size-base);
    color: var(--text-muted);
    margin-top: 6px;
    line-height: var(--bm-line-height);
}

/* Toggle (Populer / En Yeni) */
.bm-forum__toggle {
    display: flex;
    background: var(--bg-body);
    padding: 4px;
    border-radius: var(--bm-radius-sm);
    border: 1px solid var(--border);
}

.bm-forum__toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 5px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--bm-font-size-sm);
    cursor: pointer;
    transition: all var(--bm-transition-fast);
}

.bm-forum__toggle-btn:hover {
    color: var(--text);
}

.bm-forum__toggle-btn.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--bm-shadow-sm);
}

/* ==================== BENTO GRID CATEGORIES ==================== */

.bm-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
}

/* Large card - spans 2x2 */
.bm-category-card--large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Wide card - spans 2x1 */
.bm-category-card--wide {
    grid-column: span 2;
}

/* Normal card - 1x1 */
.bm-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--bm-radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all var(--bm-transition-normal);
    position: relative;
    overflow: hidden;
}

/* Accent bar on top - solid color */
.bm-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--bm-accent-1));
    transition: height var(--bm-transition-fast);
}

.bm-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bm-shadow-hover);
    border-color: var(--card-accent, var(--primary));
}

.bm-category-card:hover::before {
    height: 5px;
}

/* Accent colors for cards */
.bm-category-card--accent-1 { --card-accent: var(--bm-accent-1); }
.bm-category-card--accent-2 { --card-accent: var(--bm-accent-2); }
.bm-category-card--accent-3 { --card-accent: var(--bm-accent-3); }
.bm-category-card--accent-4 { --card-accent: var(--bm-accent-4); }
.bm-category-card--accent-5 { --card-accent: var(--bm-accent-5); }
.bm-category-card--accent-6 { --card-accent: var(--bm-accent-6); }

.bm-category-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--bm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--card-accent, var(--bm-accent-1));
}

.bm-category-card--large .bm-category-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.bm-category-card__icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.bm-category-card--large .bm-category-card__icon svg {
    width: 32px;
    height: 32px;
}

.bm-category-card__title {
    font-size: var(--bm-font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.bm-category-card--large .bm-category-card__title {
    font-size: var(--bm-font-size-xl);
}

.bm-category-card__desc {
    font-size: var(--bm-font-size-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: var(--bm-line-height);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-category-card--large .bm-category-card__desc {
    -webkit-line-clamp: 3;
    font-size: var(--bm-font-size-base);
}

.bm-category-card__stats {
    display: flex;
    gap: 16px;
    font-size: var(--bm-font-size-xs);
    color: var(--text-muted);
}

.bm-category-card__stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bm-category-card__stat svg {
    width: 14px;
    height: 14px;
}

/* Admin buttons */
.bm-category-card__admin-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bm-category-card:hover .bm-category-card__admin-actions {
    opacity: 1;
}

/* Add category card */
.bm-category-card--add {
    border: 2px dashed var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.bm-category-card--add::before {
    display: none;
}

.bm-category-card--add:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: none;
    box-shadow: none;
}

.bm-category-card__icon--add {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all var(--bm-transition-fast);
}

.bm-category-card--add:hover .bm-category-card__icon--add {
    border-color: var(--primary);
    color: var(--primary);
}

.bm-category-card__icon--add svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

/* Legacy grid support */
.bm-grid {
    display: grid;
    gap: 16px;
}

.bm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.bm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.bm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==================== TWITTER/X STYLE TOPIC FEED ==================== */

.bm-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bm-topic-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 20px 0;
    cursor: pointer;
    transition: all var(--bm-transition-fast);
    position: relative;
}

.bm-topic-card:first-child {
    padding-top: 0;
}

.bm-topic-card:last-child {
    border-bottom: none;
}

.bm-topic-card::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background var(--bm-transition-fast);
}

.bm-topic-card:hover {
    background: transparent;
}

.bm-topic-card:hover::before {
    background: var(--primary);
}

/* Dark mode card */
[data-theme="dark"] .bm-topic-card {
    background: transparent;
}

.bm-topic-card.pinned {
    background: rgba(245, 158, 11, 0.05);
    border-radius: var(--bm-radius-md);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    margin-bottom: 8px;
}

.bm-topic-card.pinned::before {
    display: none;
}

.bm-topic-card.locked {
    opacity: 0.7;
}

.bm-topic-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.bm-topic-card__body {
    flex: 1;
    min-width: 0;
}

/* Twitter-style header: Avatar, Name, Category, Time */
.bm-topic-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.bm-topic-card__author {
    font-weight: 600;
    font-size: var(--bm-font-size-base);
    color: var(--text);
}

.bm-topic-card__meta-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--bm-font-size-sm);
    color: var(--text-muted);
}

.bm-topic-card__meta-dot {
    color: var(--text-muted);
    opacity: 0.5;
}

.bm-topic-card__category {
    background: var(--bg-body);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: var(--bm-font-size-xs);
    color: var(--primary);
    font-weight: 500;
}

.bm-topic-card__title {
    font-size: var(--bm-font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.bm-topic-card__title-text {
    display: block;
}

.bm-topic-card__badges {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.bm-topic-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--bm-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.bm-topic-card__badge--new {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.bm-topic-card__badge--pinned {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.bm-topic-card__badge--locked {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
}

.bm-topic-card__badge svg {
    width: 11px;
    height: 11px;
}

/* Content preview - 2-3 lines */
.bm-topic-card__excerpt {
    font-size: var(--bm-font-size-base);
    color: var(--text-secondary);
    line-height: var(--bm-line-height);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Footer stats - Twitter style */
.bm-topic-card__footer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bm-topic-card__stats {
    display: flex;
    gap: 18px;
}

.bm-topic-card__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--bm-font-size-sm);
    color: var(--text-muted);
    transition: color var(--bm-transition-fast);
}

.bm-topic-card:hover .bm-topic-card__stat {
    color: var(--text-secondary);
}

.bm-topic-card__stat svg {
    width: 15px;
    height: 15px;
}

.bm-topic-card__last-reply {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--bm-font-size-xs);
    color: var(--text-muted);
}

.bm-topic-card__last-reply img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Old meta style (fallback) */
.bm-topic-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--bm-font-size-sm);
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ==================== SECTIONS ==================== */

.bm-section {
    margin-bottom: 36px;
}

.bm-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bm-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--bm-font-size-lg);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.bm-section__title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.bm-section__link {
    font-size: var(--bm-font-size-sm);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.bm-section__link:hover {
    text-decoration: underline;
}

.bm-section__link svg {
    width: 15px;
    height: 15px;
}

/* ==================== CLASSIC FORUM POST LAYOUT ==================== */

.bm-topic-detail {
    max-width: 100%;
}

.bm-topic-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.bm-topic-detail__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--bm-font-size-2xl);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.bm-topic-detail__title svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bm-topic-detail__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Post Card - Classic Forum with Left Author Panel */
.bm-post {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--bm-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color var(--bm-transition-fast);
}

.bm-post:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

.bm-post--original {
    border-left: 4px solid var(--primary);
}

/* Author Panel - Fixed Width Left Side */
.bm-post__author {
    width: 180px;
    min-width: 180px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid var(--border);
}

.bm-post__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin-bottom: 14px;
}

.bm-post__author-name {
    font-weight: 600;
    font-size: var(--bm-font-size-base);
    color: var(--text);
    margin-bottom: 6px;
}

.bm-post__author-school,
.bm-post__author-branch {
    font-size: var(--bm-font-size-xs);
    color: var(--text-muted);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bm-post__author-school::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

.bm-post__author-branch::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

.bm-post__author-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--bm-font-size-xs);
    color: var(--text-muted);
    margin-top: 12px;
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 16px;
}

.bm-post__author-stats svg {
    width: 13px;
    height: 13px;
}

/* Post Body - Content Area */
.bm-post__body {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
}

.bm-post__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--bm-font-size-sm);
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.bm-post__date svg {
    width: 14px;
    height: 14px;
}

.bm-post__edited {
    font-style: italic;
    opacity: 0.8;
}

.bm-post__content {
    font-size: var(--bm-font-size-base);
    line-height: 1.75;
    color: var(--text);
    flex: 1;
}

.bm-post__content a {
    color: var(--primary);
}

.bm-post__content a:hover {
    text-decoration: underline;
}

.bm-post__content p {
    margin-bottom: 1em;
}

.bm-post__content p:last-child {
    margin-bottom: 0;
}

/* Post Actions - Subtle Bottom Bar */
.bm-post__actions {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ==================== BREADCRUMB - DISCOURSE STYLE ==================== */

.bm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: var(--bm-font-size-sm);
    margin-bottom: 24px;
}

.bm-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
}

.bm-breadcrumb__item:hover {
    text-decoration: underline;
}

.bm-breadcrumb__item svg {
    width: 15px;
    height: 15px;
}

.bm-breadcrumb__separator {
    color: var(--text-muted);
    opacity: 0.5;
    padding: 0 10px;
    font-weight: 400;
}

.bm-breadcrumb__current {
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== REPLY FORM ==================== */

.bm-reply-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--bm-radius-lg);
    padding: 24px 28px;
    margin-top: 28px;
}

.bm-reply-form__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--bm-font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
}

.bm-reply-form__title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.bm-reply-form__textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--bm-radius-md);
    background: var(--bg-input);
    color: var(--text);
    font-family: inherit;
    font-size: var(--bm-font-size-base);
    line-height: 1.65;
    resize: vertical;
    transition: border-color var(--bm-transition-fast);
}

.bm-reply-form__textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.bm-reply-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* Locked Notice */
.bm-locked-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--bm-radius-lg);
    margin-top: 28px;
    color: var(--text-muted);
    font-size: var(--bm-font-size-base);
}

.bm-locked-notice svg {
    width: 20px;
    height: 20px;
}

/* Replies Header */
.bm-replies-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 20px;
    font-size: var(--bm-font-size-lg);
    font-weight: 600;
    color: var(--text);
}

.bm-replies-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ==================== EMPTY & LOADING STATES ==================== */

.bm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.bm-empty__icon {
    width: 88px;
    height: 88px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bm-empty__icon svg {
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    opacity: 0.6;
}

.bm-empty__title {
    font-size: var(--bm-font-size-xl);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.bm-empty__text {
    font-size: var(--bm-font-size-base);
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
    line-height: var(--bm-line-height);
}

/* Loading State */
.bm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.bm-loading__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bm-spin 0.7s linear infinite;
    margin-bottom: 18px;
}

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

.bm-loading__text {
    font-size: var(--bm-font-size-base);
    color: var(--text-muted);
}

/* ==================== PAGINATION ==================== */

.bm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    margin-top: 16px;
}

.bm-pagination__info {
    font-size: var(--bm-font-size-base);
    color: var(--text-muted);
}

/* ==================== LOAD MORE / INFINITE SCROLL ==================== */

.bm-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    color: var(--text-muted);
    font-size: var(--bm-font-size-base);
}

.bm-load-more .bm-loading__spinner {
    width: 22px;
    height: 22px;
    margin-bottom: 0;
}

.bm-end-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: var(--text-muted);
    font-size: var(--bm-font-size-sm);
    margin-top: 16px;
}

.bm-end-message::before,
.bm-end-message::after {
    content: '';
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: var(--border);
    margin: 0 18px;
}

/* ==================== SOCIAL EMBEDS ==================== */

.bm-embed {
    margin: 18px 0;
    border-radius: var(--bm-radius-md);
    overflow: hidden;
}

.bm-embed.youtube iframe {
    width: 100%;
    height: 340px;
    border: none;
    border-radius: var(--bm-radius-md);
}

.bm-embed.twitter,
.bm-embed.instagram {
    background: var(--bg-body);
    padding: 18px;
    border-radius: var(--bm-radius-md);
}

.bm-embed.twitter a,
.bm-embed.instagram a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.bm-embed.twitter a:hover,
.bm-embed.instagram a:hover {
    text-decoration: underline;
}

.bm-embed.twitter svg,
.bm-embed.instagram svg {
    width: 20px;
    height: 20px;
}

/* ==================== MODALS ==================== */

.bm-modal-large {
    max-width: 720px;
}

.bm-modal-large textarea {
    width: 100%;
    min-height: 220px;
}

/* ==================== BUTTONS ==================== */

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 7px 12px;
    border-radius: var(--bm-radius-sm);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--bm-font-size-sm);
    transition: all 0.15s;
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.btn-ghost.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .bm-bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-category-card--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 1024px) {
    .bm-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-category-card--large {
        grid-column: span 2;
    }

    .bm-category-card--wide {
        grid-column: span 2;
    }

    .bm-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .bm-forum__layout {
        flex-direction: column;
    }

    .bm-forum__sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }

    .bm-forum__sidebar-section {
        padding: 12px 14px;
    }

    .bm-forum__header {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
        padding: 14px 20px;
    }

    .bm-forum__tabs {
        width: 100%;
        justify-content: center;
    }

    .bm-post {
        flex-direction: column;
    }

    .bm-post__author {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        text-align: left;
        padding: 18px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        gap: 14px;
    }

    .bm-post__avatar {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .bm-post__author-school::before,
    .bm-post__author-branch::before {
        display: none;
    }

    .bm-post__body {
        padding: 20px;
    }

    .bm-topic-card::before {
        left: -20px;
    }

    .bm-forum__content {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .bm-bento-grid {
        grid-template-columns: 1fr;
    }

    .bm-category-card--large,
    .bm-category-card--wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bm-grid--2,
    .bm-grid--3,
    .bm-grid--4 {
        grid-template-columns: 1fr;
    }

    .bm-category-card {
        padding: 20px;
    }

    .bm-category-card__icon {
        width: 46px;
        height: 46px;
    }

    .bm-category-card__icon svg {
        width: 22px;
        height: 22px;
    }

    .bm-topic-card {
        padding: 16px 0;
    }

    .bm-topic-card__avatar {
        width: 40px;
        height: 40px;
    }

    .bm-topic-card__footer {
        flex-wrap: wrap;
    }

    .bm-topic-card__last-reply {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .bm-forum__tab span {
        display: none;
    }

    .bm-forum__content {
        padding: 16px 18px;
    }

    .bm-topic-detail__header {
        flex-direction: column;
        gap: 14px;
    }

    .bm-topic-detail__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .bm-topic-detail__title {
        font-size: var(--bm-font-size-xl);
    }

    .bm-post__author {
        padding: 14px 16px;
    }

    .bm-post__avatar {
        width: 52px;
        height: 52px;
    }

    .bm-post__body {
        padding: 16px;
    }

    .bm-reply-form {
        padding: 18px 20px;
    }

    .bm-topic-card::before {
        left: -18px;
    }
}

@media (max-width: 480px) {
    .bm-forum__content {
        padding: 14px 16px;
    }

    .bm-topic-card::before {
        left: -16px;
    }

    .bm-topic-card__title {
        font-size: var(--bm-font-size-base);
    }

    .bm-topic-card__stats {
        gap: 12px;
    }

    .bm-post__author {
        flex-wrap: wrap;
    }

    .bm-post__author-stats {
        margin-top: 8px;
        margin-left: auto;
    }
}
