/** Extracted page styles for forum.php; isolated from shared shell components. */
/* =========================================================
   FORUM - Following style-1.css Light Mode Design
   ========================================================= */

body.asset-page-forum .main-wrapper .forum-container{
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 200px);
}

/* Forum Header */
body.asset-page-forum .main-wrapper .forum-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

body.asset-page-forum .main-wrapper .forum-header-content h1{
    font-size: 1.875rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

body.asset-page-forum .main-wrapper .forum-header-content h1 i{
    color: var(--primary);
}

body.asset-page-forum .main-wrapper .forum-header-content p{
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
}

/* Forum Grid Layout */
body.asset-page-forum .main-wrapper .forum-grid{
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

body.asset-page-forum .main-wrapper .forum-main{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

body.asset-page-forum .main-wrapper .forum-sidebar{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Category Count Badge */
body.asset-page-forum .main-wrapper .category-count{
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Category List Container */
body.asset-page-forum .main-wrapper .category-list-container{
    padding: 0;
}

body.asset-page-forum .main-wrapper .category-list{
    display: flex;
    flex-direction: column;
}

/* Category Card - Light Mode */
body.asset-page-forum .main-wrapper .category-card{
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
}

body.asset-page-forum .main-wrapper .category-card:last-child{
    border-bottom: none;
}

body.asset-page-forum .main-wrapper .category-card:hover{
    background: var(--bg-secondary);
}

body.asset-page-forum .main-wrapper .category-card:hover .category-card-arrow{
    transform: translateX(4px);
    opacity: 1;
}

/* Category Icon */
body.asset-page-forum .main-wrapper .category-card-icon{
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

body.asset-page-forum .main-wrapper .category-card:hover .category-card-icon{
    transform: scale(1.05);
}

/* Category Content */
body.asset-page-forum .main-wrapper .category-card-content{
    flex: 1;
    min-width: 0;
}

body.asset-page-forum .main-wrapper .category-card-title{
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

body.asset-page-forum .main-wrapper .category-card:hover .category-card-title{
    color: var(--primary);
}

body.asset-page-forum .main-wrapper .category-card-description{
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

body.asset-page-forum .main-wrapper .category-card-meta{
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

body.asset-page-forum .main-wrapper .category-card-meta i{
    font-size: 0.75rem;
}

/* Category Stats */
body.asset-page-forum .main-wrapper .category-card-stats{
    display: flex;
    gap: var(--spacing-lg);
}

body.asset-page-forum .main-wrapper .stat-item{
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

body.asset-page-forum .main-wrapper .stat-item i{
    color: var(--primary);
    font-size: 1.125rem;
}

body.asset-page-forum .main-wrapper .stat-content{
    display: flex;
    flex-direction: column;
}

body.asset-page-forum .main-wrapper .stat-value{
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

body.asset-page-forum .main-wrapper .stat-label{
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Category Arrow */
body.asset-page-forum .main-wrapper .category-card-arrow{
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0.5;
    transition: var(--transition-base);
}

/* Forum Stats Card */
body.asset-page-forum .main-wrapper .forum-stats-card{
    margin-top: var(--spacing-lg);
}

body.asset-page-forum .main-wrapper .forum-stats-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
}

body.asset-page-forum .main-wrapper .forum-stat{
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

body.asset-page-forum .main-wrapper .forum-stat-icon{
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

body.asset-page-forum .main-wrapper .forum-stat-content{
    display: flex;
    flex-direction: column;
}

body.asset-page-forum .main-wrapper .forum-stat-value{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

body.asset-page-forum .main-wrapper .forum-stat-label{
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Empty State */
body.asset-page-forum .main-wrapper .empty-state{
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

body.asset-page-forum .main-wrapper .empty-icon{
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: var(--spacing-lg);
}

body.asset-page-forum .main-wrapper .empty-state h3{
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

body.asset-page-forum .main-wrapper .empty-state p{
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body.asset-page-forum .main-wrapper .forum-grid{
        grid-template-columns: 1fr;
    }

    body.asset-page-forum .main-wrapper .forum-sidebar{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    body.asset-page-forum .main-wrapper .forum-header{
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
        padding: var(--spacing-lg);
    }

    body.asset-page-forum .main-wrapper .forum-header-content h1{
        font-size: 1.5rem;
        justify-content: center;
    }

    body.asset-page-forum .main-wrapper .forum-header-actions{
        width: 100%;
    }

    body.asset-page-forum .main-wrapper .forum-header-actions .btn{
        width: 100%;
    }

    body.asset-page-forum .main-wrapper .category-card{
        flex-wrap: wrap;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
    }

    body.asset-page-forum .main-wrapper .category-card-icon{
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    body.asset-page-forum .main-wrapper .category-card-stats{
        width: 100%;
        justify-content: space-around;
    }

    body.asset-page-forum .main-wrapper .category-card-arrow{
        position: absolute;
        right: var(--spacing-lg);
        top: var(--spacing-lg);
    }

    body.asset-page-forum .main-wrapper .forum-stats-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body.asset-page-forum .main-wrapper .forum-header-content h1{
        font-size: 1.25rem;
    }

    body.asset-page-forum .main-wrapper .category-card{
        padding: var(--spacing-md);
    }

    body.asset-page-forum .main-wrapper .category-card-icon{
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    body.asset-page-forum .main-wrapper .category-card-title{
        font-size: 1rem;
    }

    body.asset-page-forum .main-wrapper .stat-item{
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    body.asset-page-forum .main-wrapper .stat-value{
        font-size: 1rem;
    }
}
