/** Extracted page styles for resources.php; isolated from shared shell components. */
/* Resources Library Styles */
body.asset-page-resources .main-wrapper .resources-container{
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 200px);
}

body.asset-page-resources .main-wrapper .resources-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--border-light);
}

body.asset-page-resources .main-wrapper .resources-header-content h1{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

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

body.asset-page-resources .main-wrapper .resources-header-content p{
    color: var(--text-secondary);
    font-size: 1.125rem;
}

body.asset-page-resources .main-wrapper .resources-stats{
    display: flex;
    gap: var(--spacing-lg);
}

body.asset-page-resources .main-wrapper .stat-box{
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    min-width: 140px;
}

body.asset-page-resources .main-wrapper .stat-box.stat-free{
    background: var(--success-light);
    border-color: var(--success);
}

body.asset-page-resources .main-wrapper .stat-number{
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

body.asset-page-resources .main-wrapper .stat-free .stat-number{
    color: var(--success);
}

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

/* Filters */
body.asset-page-resources .main-wrapper .resources-filters-section{
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

body.asset-page-resources .main-wrapper .btn-upload{
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
}

body.asset-page-resources .main-wrapper .search-box-large{
    position: relative;
    margin-bottom: var(--spacing-md);
}

body.asset-page-resources .main-wrapper .search-box-large i{
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.125rem;
}

body.asset-page-resources .main-wrapper .search-input-large{
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.asset-page-resources .main-wrapper .search-input-large:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

body.asset-page-resources .main-wrapper .filters-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto auto;
    gap: var(--spacing-md);
    align-items: end;
}

body.asset-page-resources .main-wrapper .filter-group{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.asset-page-resources .main-wrapper .filter-label{
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

body.asset-page-resources .main-wrapper .filter-select{
    padding: var(--spacing-md);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

body.asset-page-resources .main-wrapper .filter-select:focus{
    outline: none;
    border-color: var(--primary);
}

/* Categories Quick Filter */
body.asset-page-resources .main-wrapper .categories-quick-filter{
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
}

body.asset-page-resources .main-wrapper .category-chip{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

body.asset-page-resources .main-wrapper .category-chip:hover{
    background: var(--bg-primary);
    border-color: var(--chip-color, var(--primary));
    color: var(--chip-color, var(--primary));
    transform: translateY(-2px);
}

body.asset-page-resources .main-wrapper .category-chip.active{
    background: var(--chip-color, var(--primary));
    border-color: var(--chip-color, var(--primary));
    color: white;
}

body.asset-page-resources .main-wrapper .category-chip-icon{
    display: flex;
    align-items: center;
    font-size: 1rem;
}

body.asset-page-resources .main-wrapper .category-chip-count{
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

body.asset-page-resources .main-wrapper .category-chip.active .category-chip-count{
    background: rgba(255,255,255,0.2);
}

/* Resources Grid */
body.asset-page-resources .main-wrapper .resources-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

/* Resource Card */
body.asset-page-resources .main-wrapper .resource-card{
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-fast);
}

body.asset-page-resources .main-wrapper .resource-card:hover{
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

body.asset-page-resources .main-wrapper .featured-badge{
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--warning);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.asset-page-resources .main-wrapper .resource-thumbnail{
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: block;
}

body.asset-page-resources .main-wrapper .resource-thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

body.asset-page-resources .main-wrapper .resource-card:hover .resource-thumbnail img{
    transform: scale(1.05);
}

body.asset-page-resources .main-wrapper .thumbnail-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

body.asset-page-resources .main-wrapper .access-badge{
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.asset-page-resources .main-wrapper .access-free{
    background: var(--success);
    color: white;
}

body.asset-page-resources .main-wrapper .access-professional{
    background: var(--primary);
    color: white;
}

body.asset-page-resources .main-wrapper .access-enterprise{
    background: var(--warning);
    color: white;
}

body.asset-page-resources .main-wrapper .resource-content{
    padding: var(--spacing-lg);
    flex: 1;
}

body.asset-page-resources .main-wrapper .resource-category{
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
}

body.asset-page-resources .main-wrapper .resource-category:hover{
    text-decoration: underline;
}

body.asset-page-resources .main-wrapper .resource-title{
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

body.asset-page-resources .main-wrapper .resource-title a{
    color: var(--text-primary);
    text-decoration: none;
}

body.asset-page-resources .main-wrapper .resource-title a:hover{
    color: var(--primary);
}

body.asset-page-resources .main-wrapper .resource-description{
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

body.asset-page-resources .main-wrapper .resource-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
}

body.asset-page-resources .main-wrapper .resource-author{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

body.asset-page-resources .main-wrapper .author-avatar-sm{
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

body.asset-page-resources .main-wrapper .author-avatar-placeholder-sm{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

body.asset-page-resources .main-wrapper .resource-stats{
    display: flex;
    gap: var(--spacing-md);
}

body.asset-page-resources .main-wrapper .resource-stat{
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

body.asset-page-resources .main-wrapper .resource-stat i{
    color: var(--primary);
}

body.asset-page-resources .main-wrapper .resource-footer{
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

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

body.asset-page-resources .main-wrapper .empty-icon{
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: var(--spacing-xl);
}

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

body.asset-page-resources .main-wrapper .empty-state p{
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Responsive */
@media (max-width: 1024px) {
    body.asset-page-resources .main-wrapper .resources-header{
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }

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

    body.asset-page-resources .main-wrapper .filters-row{
        grid-template-columns: 1fr;
    }

    body.asset-page-resources .main-wrapper .btn-upload{
        position: static;
        margin-top: var(--spacing-md);
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.asset-page-resources .main-wrapper .resources-grid{
        grid-template-columns: 1fr;
    }

    body.asset-page-resources .main-wrapper .categories-quick-filter{
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-sm);
    }

    body.asset-page-resources .main-wrapper .category-chip{
        white-space: nowrap;
    }
}
