/* Forum Styles - Old School Forum Look */

.forum-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forum-nav li {
  margin: 0.5rem 0;
}

.forum-nav button {
  cursor: pointer;
  padding: 0.5rem;
  font-weight: bold;
  background: #e9e9e9;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  text-align: left;
}

.forum-nav button:hover {
  background: #ddd;
}

.forum-nav .content {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-top: none;
  background: #f9f9f9;
}

.forum-nav .content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forum-nav .content ul li {
  margin: 0.25rem 0;
}

.forum-nav .content ul li a {
  display: block;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  color: #333;
}

.forum-nav .content ul li a:hover {
  background: #f0f0f0;
}

.subcategories-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.subcategories-grid .tags {
  justify-content: flex-start;
}

.subcategories-grid .tag {
    padding: 0;
    background-color: transparent;
    color: var(--color-primary);
}

.subcategories-grid .tag:before {
    content: '#';
}


.sub-card {
    border: 1px solid var(--color-primary);
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 var(--spacing-3);
}

.sub-card h3 {
margin: 0 0 0.5rem 0;
}

.sub-card div {
display: flex;
justify-content: space-between;
align-items: center;
}

.sub-card .count {
align-self: flex-end;
flex-shrink: 0;
}

.articles-list {
    list-style: none;
    padding: 0;
    margin: 0 var(--spacing-3);
}

.nav-sub-card {
border: 1px solid #333;
background: #fff;
padding: 0.5rem;
margin: 0.5rem 0;
display: flex;
flex-direction: column;
box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.nav-sub-card h4 {
margin: 0 0 0.25rem 0;
font-size: 1rem;
}

.nav-sub-card .tags {
flex: 1;
}

.nav-sub-card .count {
font-size: 1.2rem;
font-weight: bold;
color: #333;
align-self: flex-end;
}

/* Pagination Styles */
.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 3rem var(--spacing-3);
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
}

.pagination-link {
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary);
    transition: opacity 0.2s;
}

.pagination-link:hover:not(.pagination-disabled) {
    opacity: 0.7;
}

.pagination-prev {
    grid-column: 1;
    justify-self: start;
}

.pagination-next {
    grid-column: 3;
    justify-self: end;
}

.pagination-info {
    grid-column: 2;
    text-align: center;
    color: var(--color-secondary-text, #666);
    font-size: 1.4rem;
}

.pagination-disabled {
    color: var(--color-secondary-text, #999);
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .pagination {
        margin: 2rem var(--spacing-2);
    }

    .pagination-info {
        display: none;
    }
}

/* ── Interests Editor ── */

.interests-editor-wrapper {
    margin: 0 var(--spacing-3);
}

.interests-editor {
    display: none;
    margin-bottom: 2rem;
}

.interests-editor--open {
    display: block;
}

.interests-editor__inner {
    border: 1px solid var(--color-border, #ddd);
    padding: 1.5rem;
    background: var(--color-bg-light, #fafafa);
}

.interests-editor__inner h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.interests-editor__inner p.text-muted {
    margin-bottom: 1.5rem;
}

/* Selected tags area */
.interests-selected {
    margin-bottom: 1.5rem;
}

.interests-selected h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.interests-selected__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.5rem;
    border: 1px dashed var(--color-border, #ccc);
    background: #fff;
}

.interests-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: var(--color-primary, #333);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 2px;
}

.interests-selected-tag button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
    opacity: 0.7;
}

.interests-selected-tag button:hover {
    opacity: 1;
}

/* Custom tag input */
.interests-custom {
    margin-bottom: 1.5rem;
}

.interests-custom label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.interests-custom__row {
    display: flex;
    gap: 0.5rem;
}

.interests-custom__row input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--color-border, #ccc);
    font-size: 0.9rem;
}

/* Popular tags area */
.interests-popular h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.interests-category {
    margin-bottom: 1rem;
}

.interests-category h5 {
    margin: 0 0 0.4rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.interests-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.interests-chip {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--color-border, #ccc);
    background: #fff;
    color: var(--color-text, #333);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.interests-chip:hover {
    border-color: var(--color-primary, #333);
    background: #f0f0f0;
}

.interests-chip--selected {
    background: var(--color-primary, #333);
    color: #fff;
    border-color: var(--color-primary, #333);
}

.interests-chip--selected:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

/* Actions row */
.interests-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 767px) {
    .interests-editor-wrapper {
        margin: 0 var(--spacing-2);
    }

    .interests-custom__row {
        flex-direction: column;
    }

    .interests-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

