/* ==========================================================================
   War & Peace Community — Professional/Corporate Theme
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy-900: #1a202c;
    --navy-800: #1a365d;
    --navy-700: #2a4a7f;
    --navy-600: #2c5282;
    --navy-500: #3182ce;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --white: #ffffff;
    --red-500: #e53e3e;
    --red-600: #c53030;
    --green-500: #38a169;
    --green-600: #2f855a;
    --yellow-500: #d69e2e;
    --blue-50: #ebf8ff;
    --blue-100: #bee3f8;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 6px;
    --radius-lg: 10px;
    --transition: 150ms ease;
}

html { font-size: 15px; }
body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }

/* --- Navbar --- */
.navbar {
    background: var(--navy-800);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}
.navbar-brand:hover { color: var(--gray-200); }
.brand-icon { font-size: 1.4rem; }

.search-form { flex: 1; max-width: 420px; }
.search-input {
    width: 100%;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-admin { color: var(--yellow-500); }
.nav-admin:hover { color: var(--yellow-500); }

/* User menu */
.user-menu { position: relative; }
.user-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: var(--transition);
}
.user-menu-trigger:hover { background: rgba(255,255,255,0.1); }
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 200;
    overflow: hidden;
}
.user-dropdown.active { display: block; }
.dropdown-header {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
}
.dropdown-header strong { color: var(--gray-800); }
.dropdown-email { font-size: 0.8rem; color: var(--gray-500); }
.dropdown-divider { height: 1px; background: var(--gray-100); }
.dropdown-item {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--gray-800); }
.dropdown-item-danger { color: var(--red-500); }
.dropdown-item-danger:hover { background: #fff5f5; color: var(--red-600); }

/* --- Layout --- */
.layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 56px);
}

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
}
.sidebar-section { padding: 0 0.75rem; }
.sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    padding: 0 0.75rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 450;
}
.sidebar-link:hover { background: var(--gray-50); color: var(--gray-800); }
.sidebar-link.active {
    background: var(--blue-50);
    color: var(--navy-700);
    font-weight: 600;
}
.channel-icon { font-size: 1rem; width: 1.25rem; text-align: center; }

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 1.5rem 2rem;
    max-width: 900px;
}

/* --- Auth Layout --- */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.auth-header h1 {
    font-size: 1.5rem;
    color: var(--navy-800);
    margin-bottom: 0.25rem;
}
.auth-subtitle { color: var(--gray-500); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.9rem;
    color: var(--gray-500);
}
.auth-footer a { font-weight: 600; }

/* --- Forms --- */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-textarea-sm { min-height: 50px; }
.form-select { cursor: pointer; }

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.4rem;
    white-space: nowrap;
}
.btn-primary {
    background: var(--navy-600);
    color: var(--white);
    border-color: var(--navy-600);
}
.btn-primary:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
}
.btn-outline {
    background: var(--white);
    color: var(--gray-600);
    border-color: var(--gray-300);
}
.btn-outline:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}
.btn-danger {
    background: var(--red-500);
    color: var(--white);
    border-color: var(--red-500);
}
.btn-danger:hover {
    background: var(--red-600);
    border-color: var(--red-600);
    color: var(--white);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* --- Alerts --- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alert-error { background: #fff5f5; color: var(--red-600); border: 1px solid #fed7d7; }
.alert-success { background: #f0fff4; color: var(--green-600); border: 1px solid #c6f6d5; }
.alert-info { background: var(--blue-50); color: var(--navy-700); border: 1px solid var(--blue-100); }
.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}
.alert-close:hover { opacity: 1; }

/* --- Page Headers --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-header h1 {
    font-size: 1.5rem;
    color: var(--navy-800);
    font-weight: 700;
}
.page-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* --- Sections --- */
.section { margin-bottom: 2rem; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.section-icon { font-size: 1.1rem; }
.link-muted {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}
.link-muted:hover { color: var(--navy-600); }

/* --- Avatars --- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    letter-spacing: 0.03em;
}
.avatar-xs { width: 26px; height: 26px; font-size: 0.65rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.75rem; }
.avatar-md { width: 52px; height: 52px; font-size: 1.05rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.6rem; }

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-admin { background: var(--navy-800); color: var(--white); }
.badge-success { background: #c6f6d5; color: var(--green-600); }
.badge-pending { background: #fefcbf; color: #975a16; }
.badge-sm { font-size: 0.6rem; padding: 0.1rem 0.4rem; }

/* --- Announcements --- */
.announcements-list { display: flex; flex-direction: column; gap: 0.75rem; }
.announcement-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    transition: var(--transition);
}
.announcement-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.announcement-card.pinned {
    border-left: 3px solid var(--navy-600);
}
.pin-badge {
    font-size: 0.7rem;
    color: var(--navy-600);
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: inline-block;
}
.announcement-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    display: block;
    margin-bottom: 0.4rem;
}
.announcement-title:hover { color: var(--navy-600); }
.announcement-preview {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

/* --- Post List --- */
.post-list { display: flex; flex-direction: column; gap: 1px; }
.post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: var(--transition);
    position: relative;
}
.post-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.post-card.post-pinned { border-left: 3px solid var(--navy-600); }
.pin-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    color: var(--navy-600);
    font-weight: 600;
}
.post-card-left { padding-top: 0.15rem; }
.post-card-body { flex: 1; min-width: 0; }
.post-card-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--gray-800);
    display: block;
    margin-bottom: 0.2rem;
}
.post-card-title:hover { color: var(--navy-600); }
.post-card-preview {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    line-height: 1.45;
}
.post-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
    flex-shrink: 0;
    padding-top: 0.15rem;
}
.stat {
    font-size: 0.8rem;
    color: var(--gray-400);
    white-space: nowrap;
}

/* --- Post Meta --- */
.post-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.meta-sep { color: var(--gray-300); }
.meta-author { color: var(--gray-600); font-weight: 500; }
.meta-author:hover { color: var(--navy-600); }
.meta-channel { color: var(--gray-500); }
.meta-channel:hover { color: var(--navy-600); }

/* --- Full Post View --- */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--navy-600); }
.breadcrumb-sep { color: var(--gray-300); }

.post-full {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.post-full-title {
    font-size: 1.5rem;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.post-full-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}
.post-author-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-700);
    font-weight: 500;
}
.post-author-link:hover { color: var(--navy-600); }

.post-full-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}
.action-btn {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.action-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.action-btn-sm { padding: 0.2rem 0.5rem; font-size: 0.8rem; }
.action-danger { color: var(--red-500); }
.action-danger:hover { background: #fff5f5; border-color: var(--red-500); }
.action-info { font-size: 0.85rem; color: var(--gray-500); }

.like-btn.liked {
    color: var(--red-500);
    border-color: var(--red-500);
    background: #fff5f5;
}
.admin-actions { margin-left: auto; display: flex; gap: 0.5rem; }

/* --- Comments --- */
.comments-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
}
.comments-heading {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
}

.comment-form { margin-bottom: 1.5rem; }
.comment-form-inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.comment-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}
.comment-input-wrap .form-textarea { width: 100%; }

.comments-list { display: flex; flex-direction: column; gap: 0; }
.comment {
    padding: 1rem 0;
    border-top: 1px solid var(--gray-100);
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}
.comment-author:hover { color: var(--navy-600); }
.comment-time { font-size: 0.8rem; color: var(--gray-400); margin-left: auto; }
.comment-body {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 2.1rem;
}
.comment-actions {
    display: flex;
    gap: 0.5rem;
    padding-left: 2.1rem;
}

.reply-form-wrap { padding-left: 2.1rem; margin-top: 0.5rem; }
.reply-form { margin-bottom: 0; }

.replies {
    margin-left: 2.1rem;
    border-left: 2px solid var(--gray-100);
    padding-left: 1rem;
}
.reply { padding: 0.75rem 0; }
.reply .comment-body { padding-left: 1.85rem; }
.reply .comment-actions { padding-left: 1.85rem; }

/* --- Post Form --- */
.post-form-container {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* --- Profile --- */
.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.profile-info { flex: 1; }
.profile-info h1 {
    font-size: 1.5rem;
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-bio {
    color: var(--gray-600);
    margin: 0.4rem 0;
    font-size: 0.95rem;
}
.profile-stats {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Profile detail fields */
.profile-detail {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0.3rem 0;
}
.profile-detail strong {
    color: var(--gray-700);
    font-weight: 600;
}
.profile-detail a {
    color: var(--navy-600);
    text-decoration: none;
}
.profile-detail a:hover {
    text-decoration: underline;
}
.profile-open-field {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Compact comment list for profiles */
.comment-list-compact { display: flex; flex-direction: column; gap: 1px; }
.comment-compact {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}
.comment-compact-link { color: var(--gray-700); display: block; }
.comment-compact-link:hover { color: var(--navy-600); }
.comment-compact-text { font-size: 0.9rem; }
.comment-compact-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
}

/* --- Members --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.member-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: var(--transition);
    color: var(--gray-800);
}
.member-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); color: var(--gray-800); }
.member-info { flex: 1; min-width: 0; }
.member-info strong { display: flex; align-items: center; gap: 0.4rem; }
.member-bio {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-meta { font-size: 0.75rem; color: var(--gray-400); }

/* --- Admin Table --- */
.admin-table-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gray-200);
}
.admin-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}
.admin-user-link:hover { color: var(--navy-600); }

/* --- Info Banner --- */
.info-banner {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--navy-700);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}
.empty-state p { margin-bottom: 1rem; }
.empty-state-sm { padding: 1.5rem 1rem; }

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.pagination-info { font-size: 0.85rem; color: var(--gray-500); }

/* --- Color Picker --- */
.color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.color-option { cursor: pointer; }
.color-option input { display: none; }
.color-swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: var(--transition);
}
.color-option input:checked + .color-swatch {
    border-color: var(--gray-800);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gray-400);
}
.color-swatch:hover { transform: scale(1.1); }

/* --- Utilities --- */
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { padding: 1rem; max-width: 100%; }
    .navbar-inner { padding: 0 1rem; }
    .search-form { display: none; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
    .post-full { padding: 1.25rem; }
    .comments-section { padding: 1rem; }
    .admin-table-wrap { overflow-x: auto; }
}

/* Mobile nav toggle - show a simple channel list */
@media (max-width: 768px) {
    .navbar-actions { gap: 0.5rem; }
    .nav-link { font-size: 0.8rem; padding: 0.25rem 0.4rem; }
}
