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

body.asset-page-resource .main-wrapper .resource-layout{
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

/* Resource Header Card */
body.asset-page-resource .main-wrapper .resource-header-card{
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

body.asset-page-resource .main-wrapper .featured-badge-large{
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--warning);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

body.asset-page-resource .main-wrapper .resource-header-thumbnail{
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

body.asset-page-resource .main-wrapper .resource-header-thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.asset-page-resource .main-wrapper .resource-header-content{
    padding: var(--spacing-2xl);
}

body.asset-page-resource .main-wrapper .category-badge-large{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: var(--spacing-md);
}

body.asset-page-resource .main-wrapper .resource-title-large{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    color: var(--text-primary);
}

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

body.asset-page-resource .main-wrapper .resource-meta-large{
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

body.asset-page-resource .main-wrapper .meta-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

body.asset-page-resource .main-wrapper .meta-item i{
    color: var(--primary);
    font-size: 1.25rem;
}

body.asset-page-resource .main-wrapper .meta-item strong{
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

body.asset-page-resource .main-wrapper .meta-item span{
    font-size: 0.875rem;
    color: var(--text-secondary);
}

body.asset-page-resource .main-wrapper .resource-tags{
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

body.asset-page-resource .main-wrapper .tag-badge{
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

body.asset-page-resource .main-wrapper .tag-badge:hover{
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

body.asset-page-resource .main-wrapper .resource-content-body{
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Rating Section */
body.asset-page-resource .main-wrapper .rating-input{
    margin-bottom: var(--spacing-lg);
}

body.asset-page-resource .main-wrapper .rating-input label{
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

body.asset-page-resource .main-wrapper .star-rating{
    display: flex;
    gap: var(--spacing-sm);
    font-size: 2rem;
    cursor: pointer;
}

body.asset-page-resource .main-wrapper .star-rating i{
    color: var(--text-muted);
    transition: var(--transition-fast);
}

body.asset-page-resource .main-wrapper .star-rating i:hover,
body.asset-page-resource .main-wrapper .star-rating i.fas{
    color: var(--warning);
}

body.asset-page-resource .main-wrapper .user-rating-display{
    text-align: center;
    padding: var(--spacing-lg);
}

body.asset-page-resource .main-wrapper .stars-display{
    font-size: 1.5rem;
    color: var(--warning);
    margin-bottom: var(--spacing-md);
}

body.asset-page-resource .main-wrapper .review-text{
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: var(--spacing-md) 0;
}

/* Comments Section */
body.asset-page-resource .main-wrapper .comment-form{
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

body.asset-page-resource .main-wrapper .comment-form textarea{
    resize: vertical;
}

body.asset-page-resource .main-wrapper .login-prompt-comment{
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

body.asset-page-resource .main-wrapper .no-comments{
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

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

body.asset-page-resource .main-wrapper .comment-item{
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

body.asset-page-resource .main-wrapper .comment-avatar{
    flex-shrink: 0;
}

body.asset-page-resource .main-wrapper .comment-avatar img{
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

body.asset-page-resource .main-wrapper .avatar-placeholder-comment{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

body.asset-page-resource .main-wrapper .comment-content{
    flex: 1;
}

body.asset-page-resource .main-wrapper .comment-header{
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

body.asset-page-resource .main-wrapper .comment-header strong{
    color: var(--text-primary);
}

body.asset-page-resource .main-wrapper .expert-badge-small{
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--warning-light);
    color: var(--warning);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

body.asset-page-resource .main-wrapper .comment-time{
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: auto;
}

body.asset-page-resource .main-wrapper .comment-text{
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

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

body.asset-page-resource .main-wrapper .comment-action-btn{
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.asset-page-resource .main-wrapper .comment-action-btn:hover{
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Sidebar */
body.asset-page-resource .main-wrapper .resource-sidebar{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

body.asset-page-resource .main-wrapper .author-card-body{
    padding: var(--spacing-xl);
}

body.asset-page-resource .main-wrapper .author-profile{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.asset-page-resource .main-wrapper .author-avatar-large{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    display: block;
}

body.asset-page-resource .main-wrapper .author-avatar-large img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.asset-page-resource .main-wrapper .avatar-placeholder-large{
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

body.asset-page-resource .main-wrapper .author-profile h4{
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

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

body.asset-page-resource .main-wrapper .author-profile h4 a:hover{
    color: var(--primary);
}

body.asset-page-resource .main-wrapper .expert-badge-author{
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--warning-light);
    color: var(--warning);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

body.asset-page-resource .main-wrapper .author-reputation{
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

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

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

body.asset-page-resource .main-wrapper .author-actions{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

/* Details */
body.asset-page-resource .main-wrapper .detail-list{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

body.asset-page-resource .main-wrapper .detail-item:last-child{
    border-bottom: none;
    padding-bottom: 0;
}

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

body.asset-page-resource .main-wrapper .detail-value{
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
}

body.asset-page-resource .main-wrapper .access-badge-small{
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

body.asset-page-resource .main-wrapper .access-badge-small.access-free{
    background: var(--success);
}

body.asset-page-resource .main-wrapper .access-badge-small.access-professional{
    background: var(--primary);
}

body.asset-page-resource .main-wrapper .access-badge-small.access-enterprise{
    background: var(--warning);
}

/* Related Resources */
body.asset-page-resource .main-wrapper .related-resources-list{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

body.asset-page-resource .main-wrapper .related-resource-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-fast);
}

body.asset-page-resource .main-wrapper .related-resource-item:hover{
    background: var(--bg-primary);
    border-color: var(--primary);
    transform: translateX(4px);
}

body.asset-page-resource .main-wrapper .related-resource-info h5{
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

body.asset-page-resource .main-wrapper .related-resource-info small{
    font-size: 0.75rem;
    color: var(--text-secondary);
}

body.asset-page-resource .main-wrapper .related-resource-meta{
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

    body.asset-page-resource .main-wrapper .resource-sidebar{
        order: -1;
    }

    body.asset-page-resource .main-wrapper .resource-meta-large{
        flex-wrap: wrap;
    }

    body.asset-page-resource .main-wrapper .resource-actions-large{
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body.asset-page-resource .main-wrapper .resource-title-large{
        font-size: 1.5rem;
    }

    body.asset-page-resource .main-wrapper .resource-description-large{
        font-size: 1rem;
    }

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

    body.asset-page-resource .main-wrapper .resource-meta-large{
        gap: var(--spacing-md);
    }

    body.asset-page-resource .main-wrapper .meta-item{
        flex: 1;
        min-width: 80px;
    }
}
