/**
 * Forum Category Styles
 * Category cards with depth-card pattern, icons, and breadcrumbs
 */

/* ============================================
   CATEGORY CARDS - Depth Card Pattern
   ============================================ */

.forum-category-card {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    padding: clamp(1rem, 2vw, 1.25rem);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04);
}

.forum-category-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.forum-category-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Dark mode shadow adjustments */
html.dark .forum-category-card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

html.dark .forum-category-card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(var(--accent-rgb), 0.1);
}

/* ============================================
   CATEGORY ICON
   ============================================ */

.category-icon {
    width: clamp(44px, 6vw, 56px);
    height: clamp(44px, 6vw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.forum-category-card:hover .category-icon {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.category-icon svg {
    width: clamp(22px, 3vw, 28px);
    height: clamp(22px, 3vw, 28px);
}

/* ============================================
   CATEGORY INFO
   ============================================ */

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    margin: 0 0 clamp(0.125rem, 0.5vw, 0.25rem) 0;
    font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1.0625rem);
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.forum-category-card:hover .category-info h3 {
    color: var(--accent);
}

.category-info p {
    margin: 0;
    font-size: clamp(0.8125rem, 1.25vw + 0.25rem, 0.875rem);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

/* ============================================
   CATEGORY STATS
   ============================================ */

.category-stats {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    font-size: clamp(0.75rem, 1.25vw + 0.1rem, 0.8125rem);
    color: var(--text-muted);
    margin-top: clamp(0.25rem, 0.5vw, 0.375rem);
}

.category-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.category-stats svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Highlight stat number */
.category-stats strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================
   CATEGORY CARD ARROW (optional indicator)
   ============================================ */

.category-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

.forum-category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.forum-breadcrumbs {
    font-size: clamp(0.8125rem, 1.25vw + 0.25rem, 0.875rem);
    color: var(--text-secondary);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: clamp(0.375rem, 0.75vw, 0.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.forum-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.forum-breadcrumbs a:hover {
    color: var(--accent);
}

.forum-breadcrumbs a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   CATEGORY PAGE HEADER
   ============================================ */

.category-header {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    padding-bottom: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 2px solid var(--accent);
}

.category-header h1,
.category-title {
    font-size: clamp(1.625rem, 3vw + 0.25rem, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.category-description {
    font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1.0625rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
}

/* ============================================
   SUBCATEGORIES
   ============================================ */

.subcategories {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.subcategories .section-title {
    font-size: clamp(1rem, 1.75vw + 0.25rem, 1.125rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}
