/* ===== COMMUNITY STYLES ===== */

.community-section {
    padding: 110px 0 60px;
    min-height: 80vh;
}

/* Buttons */
.btn-community-new,
.btn-community-primary {
    display: inline-block;
    background: var(--rose);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-community-new:hover,
.btn-community-primary:hover {
    background: var(--rose-dark);
}

.btn-community-secondary {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--espresso-soft);
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Flash messages (colors shared from main.css .flash-error/.flash-success) */
.community-flash {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

/* Header */
.community-header {
    margin-bottom: 32px;
}

.community-header h1 {
    font-size: 2rem;
    color: var(--espresso);
    margin-bottom: 8px;
}

.community-header p {
    color: var(--espresso-soft);
    font-size: 0.95rem;
}

/* Breadcrumb */
.community-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--espresso-soft);
}

.community-breadcrumb a {
    color: var(--rose);
    text-decoration: none;
}

.community-breadcrumb a:hover {
    text-decoration: underline;
}

/* Section title */
.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--espresso);
    margin-bottom: 16px;
    font-weight: 600;
}

/* Category cards */
.category-grid {
    display: grid;
    gap: 12px;
}

.category-card {
    display: block;
    background: var(--white);
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--espresso);
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
    transition: box-shadow 0.15s, transform 0.15s;
}

.category-card:hover {
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.08);
    transform: translateY(-1px);
}
.category-locked {
    opacity: 0.55;
    cursor: default;
}
.category-locked:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
}

.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card p {
    color: var(--espresso-soft);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.thread-count {
    font-size: 0.8rem;
    color: var(--rose);
    font-weight: 500;
}

.category-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.category-last-activity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--espresso-soft);
}

/* Recent threads sidebar — sticky */
.community-section .col-lg-4 {
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.recent-threads {
    display: grid;
    gap: 8px;
}

.recent-thread-card {
    display: block;
    background: var(--white);
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--espresso);
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.03);
    transition: background 0.15s;
}

.recent-thread-card:hover {
    background: var(--cream-dark);
}

.recent-thread-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-thread-meta {
    font-size: 0.75rem;
    color: var(--espresso-soft);
}

/* Thread list */
.thread-list {
    display: grid;
    gap: 8px;
}

.thread-card {
    display: block;
    background: var(--white);
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--espresso);
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
    transition: box-shadow 0.15s;
    position: relative;
}

.thread-card:hover {
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.08);
}

.thread-card.pinned {
    border-left: 3px solid var(--gold);
}

.pinned-badge,
.locked-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 6px;
}

.pinned-badge {
    background: var(--gold-light);
    color: var(--espresso);
}

.locked-badge {
    background: var(--cream-dark);
    color: var(--espresso-soft);
}

.thread-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.thread-card-preview {
    color: var(--espresso-soft);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.thread-card-meta {
    font-size: 0.75rem;
    color: var(--espresso-soft);
}

/* Thread detail */
.thread-detail {
    background: var(--white);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
    margin-bottom: 24px;
}

.thread-detail-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.thread-meta {
    font-size: 0.85rem;
    color: var(--espresso-soft);
    margin-bottom: 24px;
}

.thread-body {
    font-size: 0.95rem;
    line-height: 1.7;
}

.thread-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--cream-dark);
    flex-wrap: wrap;
}

.thread-actions > div {
    display: inline-flex;
}

.thread-actions > form {
    display: inline-flex;
}

/* Like button */
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--espresso-soft);
    cursor: pointer;
    transition: color 0.15s;
}

.btn-like:hover {
    color: var(--rose);
}

.btn-like.liked {
    color: var(--rose);
}

/* Report */
.btn-report {
    background: none;
    border: none;
    color: var(--espresso-soft);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-report:hover {
    color: var(--rose);
}

.report-input {
    font-size: 0.8rem;
    padding: 4px 10px;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    width: 200px;
}

.btn-report-submit {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--cream-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Replies — threaded */
.replies-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.reply-thread {
    position: relative;
}

.reply-children {
    position: relative;
}

/* Empty reply-children should not take space */
.reply-children:empty {
    display: none;
}

.reply-children > .reply-nested {
    margin-left: 24px;
    padding-left: 0;
    padding-top: 6px;
    position: relative;
}

.reply-children > .reply-nested > .reply-card {
    margin-bottom: 0;
}

/* L-shaped curve: vertical down then curves right to the reply card */
.reply-children > .reply-nested::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 24px;
    height: 30px;
    border-left: 2px solid rgba(44, 24, 16, 0.12);
    border-bottom: 2px solid rgba(44, 24, 16, 0.12);
    border-bottom-left-radius: 12px;
}

/* Vertical line continuing down to next sibling (all except last) */
.reply-children > .reply-nested:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    border-left: 2px solid rgba(44, 24, 16, 0.12);
}

#replies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.03);
}


.reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.reply-to-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rose);
    font-size: 0.78rem;
    opacity: 0.8;
}

.reply-date {
    color: var(--espresso-soft);
    font-size: 0.75rem;
}

.reply-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

.reply-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.reply-actions > div {
    display: inline-flex;
}

.reply-actions > form {
    display: inline-flex;
}

.btn-reply-action {
    background: none;
    border: none;
    color: var(--espresso-soft);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.btn-reply-action:hover {
    background: rgba(44, 24, 16, 0.06);
    color: var(--espresso);
}

.reply-children {
    margin-top: 0;
}

.inline-reply-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(44, 24, 16, 0.06);
}

.inline-reply-form .reply-textarea {
    font-size: 0.85rem;
    padding: 10px 12px;
}

@media (max-width: 768px) {
    .reply-children > .reply-nested {
        margin-left: 16px;
    }
    .reply-children > .reply-nested::before {
        left: -16px;
        width: 16px;
    }
    .reply-children > .reply-nested:not(:last-child)::after {
        left: -16px;
    }
}

/* Reply form */
.reply-form-section {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
}

.reply-form-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.reply-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--rose);
}

.thread-locked-notice {
    text-align: center;
    padding: 20px;
    color: var(--espresso-soft);
    font-size: 0.9rem;
    background: var(--cream);
    border-radius: 10px;
}

/* Thread form */
.thread-form-container {
    background: var(--white);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
    max-width: 700px;
}

.thread-form-container h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--espresso);
}

.form-hint {
    font-weight: 400;
    color: var(--espresso-soft);
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.15s;
    background: var(--white);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--rose);
}

.form-textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Guidelines */
.community-guidelines-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--espresso);
}

.community-guidelines-notice svg {
    flex-shrink: 0;
    color: var(--espresso-soft);
}

.community-guidelines-notice a {
    color: var(--rose);
    font-weight: 600;
    text-decoration: none;
}

.community-guidelines-notice a:hover {
    text-decoration: underline;
}

.guidelines-content {
    max-width: 720px;
}

.guideline-section {
    margin-bottom: 32px;
}

.guideline-section h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--espresso);
    margin-bottom: 12px;
}

.guideline-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--espresso-soft);
    margin-bottom: 12px;
}

.guideline-section ul {
    margin: 8px 0 12px 0;
    padding-left: 20px;
}

.guideline-section li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--espresso-soft);
    margin-bottom: 6px;
}

.guideline-section li strong {
    color: var(--espresso);
}

.guideline-section a {
    color: var(--rose);
    text-decoration: none;
}

.guideline-section a:hover {
    text-decoration: underline;
}

/* EasyMDE overrides */
.EasyMDEContainer {
    resize: vertical;
    overflow: auto;
}

.EasyMDEContainer .CodeMirror {
    border: 1px solid var(--cream-dark);
    border-radius: 0 0 10px 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--espresso);
}

.EasyMDEContainer .CodeMirror-focused {
    border-color: var(--rose);
}

.EasyMDEContainer .editor-toolbar {
    border: 1px solid var(--cream-dark);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: var(--cream);
}

.EasyMDEContainer .editor-toolbar button {
    color: var(--espresso-soft) !important;
}

.EasyMDEContainer .editor-toolbar button:hover,
.EasyMDEContainer .editor-toolbar button.active {
    background: var(--cream-dark);
    border-color: transparent;
}

.EasyMDEContainer .editor-toolbar i.separator {
    border-left-color: var(--cream-dark);
}

/* Pagination */
.community-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    font-size: 0.85rem;
}

.community-pagination a {
    color: var(--rose);
    text-decoration: none;
    font-weight: 500;
}

.community-pagination a:hover {
    text-decoration: underline;
}

.community-pagination span {
    color: var(--espresso-soft);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--espresso-soft);
}

.empty-state p {
    margin-bottom: 16px;
}

/* Markdown content */
.markdown-content p {
    margin-bottom: 12px;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    font-family: var(--font-display);
    margin-bottom: 8px;
    margin-top: 20px;
}

.markdown-content img {
    max-width: 100%;
    border-radius: 8px;
}

.markdown-content blockquote {
    border-left: 3px solid var(--blush);
    padding-left: 16px;
    color: var(--espresso-soft);
    margin: 12px 0;
}

.markdown-content code {
    background: var(--cream-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.markdown-content pre {
    background: var(--espresso);
    color: var(--cream);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 12px 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .community-section {
        padding: 90px 0 60px;
    }

    .community-nav {
        flex-direction: column;
        gap: 8px;
        padding: 10px 14px;
    }

    .community-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .btn-community-new,
    .btn-community-primary,
    .btn-community-secondary {
        padding: 10px 20px;
        min-height: 44px;
    }

    .thread-detail {
        padding: 20px;
    }

    .thread-form-container {
        padding: 20px;
    }

    .thread-detail-header h1 {
        font-size: 1.4rem;
    }

    .community-section {
        padding-bottom: 100px;
    }

    .community-breadcrumb {
        flex-wrap: wrap;
    }

    .report-input {
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile bottom tab bar */
.community-mobile-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--white);
    border-top: 1px solid rgba(44, 24, 16, 0.08);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(44, 24, 16, 0.06);
}

.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(44, 24, 16, 0.4);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 12px;
    transition: color 0.2s;
}

.mobile-tab.active {
    color: var(--rose);
}

.mobile-tab:hover {
    color: var(--rose);
}

/* Avatar circles */
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-24 { width: 24px; height: 24px; font-size: 0.65rem; }
.avatar-32 { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-40 { width: 40px; height: 40px; font-size: 0.9rem; }
.avatar-64 { width: 64px; height: 64px; font-size: 1.5rem; }
.avatar-120 { width: 120px; height: 120px; font-size: 2.5rem; }

img.avatar-circle {
    object-fit: cover;
}

/* Search bar */
.community-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.community-search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    transition: border-color 0.15s;
}

.community-search-form input:focus {
    outline: none;
    border-color: var(--rose);
}

/* Inline search */
.inline-search-input {
    width: 200px;
    padding: 6px 12px;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    background: var(--white);
    color: var(--espresso);
    transition: border-color 0.15s, width 0.2s;
}

.inline-search-input:focus {
    outline: none;
    border-color: var(--rose);
    width: 260px;
}

/* Tabs */
.community-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--cream-dark);
    margin-bottom: 24px;
}

.community-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--espresso-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.community-tab:hover {
    color: var(--espresso);
}

.community-tab.active {
    color: var(--espresso);
    border-bottom-color: var(--rose);
}

/* Sort dropdown */
.community-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.community-sort select {
    padding: 6px 12px;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    background: var(--white);
    color: var(--espresso);
    cursor: pointer;
}

.community-sort label {
    font-size: 0.8rem;
    color: var(--espresso-soft);
    font-weight: 500;
}

/* Combined feed thread cards */
.feed-thread-card {
    display: flex;
    gap: 14px;
    background: var(--white);
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--espresso);
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
    transition: box-shadow 0.15s;
    align-items: flex-start;
}

.feed-thread-card:hover {
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.08);
}

.feed-thread-content {
    flex: 1;
    min-width: 0;
}

.feed-thread-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--espresso-soft);
    margin-top: 6px;
}

.feed-thread-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(194, 123, 107, 0.1);
    color: var(--rose);
}

/* Reply count — right-aligned in feed cards */
.feed-thread-reply-count {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--espresso-soft);
    white-space: nowrap;
    align-self: center;
    min-width: 70px;
}

/* Thread row list container */
.thread-row-list {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
    overflow: hidden;
}

/* Thread row card — two-row layout (like Long Angle) */
.thread-row-card {
    display: block;
    background: var(--white);
    padding: 18px 24px;
    text-decoration: none;
    color: var(--espresso);
    border-bottom: 1px solid var(--cream-dark);
    transition: background 0.12s;
}

.thread-row-card:first-child {
    border-radius: 14px 14px 0 0;
}

.thread-row-card:last-child {
    border-bottom: none;
    border-radius: 0 0 14px 14px;
}

.thread-row-card:only-child {
    border-radius: 14px;
}

.thread-row-card:hover {
    background: #f0ebe5;
}

.thread-row-card.pinned {
    border-left: 3px solid var(--gold);
}

.thread-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.thread-row-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-row-reply-count {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--espresso-soft);
    font-weight: 500;
    white-space: nowrap;
}

.thread-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--espresso-soft);
}

.thread-row-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.thread-row-last-reply {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .thread-row-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .thread-row-title {
        white-space: normal;
    }
}

/* Bookmark & Follow buttons */
.btn-bookmark,
.btn-follow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--espresso-soft);
    cursor: pointer;
    transition: color 0.15s;
}

.btn-bookmark:hover,
.btn-follow:hover {
    color: var(--rose);
}

.btn-bookmark.active,
.btn-follow.active {
    color: var(--rose);
}

/* Edit/Delete action buttons */
.btn-edit-action,
.btn-delete-action {
    background: none;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-edit-action {
    color: var(--espresso-soft);
}

.btn-edit-action:hover {
    color: var(--rose);
}

.btn-delete-action {
    color: var(--espresso-soft);
}

.btn-delete-action:hover {
    color: #b71c1c;
}

.edited-badge {
    font-size: 0.7rem;
    color: var(--espresso-soft);
    font-style: italic;
}

/* Profile tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--cream-dark);
    margin-bottom: 20px;
}

.profile-tab {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--espresso-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.profile-tab:hover {
    color: var(--espresso);
}

.profile-tab.active {
    color: var(--rose);
    border-bottom-color: var(--rose);
}

/* Avatar upload */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-dark);
}

.avatar-upload-section input[type="file"] {
    font-size: 0.85rem;
}

/* View count display */
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--espresso-soft);
}
