/**
 * Resource Styles
 */

/* Resource Details Section */
.cs-entry__container:has(.cs-resource-details) {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.cs-entry__content-wrap:has(.cs-resource-details) {
    width: 100%;
    max-width: none;
}

.cs-resource-details {
    margin: 2rem 0 0;
    width: 100%;
}

.cs-resource-meta {
    margin: 0 0 1.5rem;
    padding: 0;
}

.cs-resource-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.cs-resource-meta-item:last-child {
    margin-bottom: 0;
}

.cs-resource-meta dt {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.cs-resource-meta dd {
    margin: 0;
    flex-grow: 1;
}

.cs-resource-meta-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: var(--cs-color-button);
}

/* Resource Type Badge */
.cs-resource-type-badge {
    margin: 0.875rem 0 1.6875rem;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--cs-color-primary);
    font-family: var(--cs-font-category-family), sans-serif;
    font-size: var(--cs-font-category-size);
    line-height: var(--cs-font-category-line-height);
    font-weight: var(--cs-font-category-weight);
    font-style: var(--cs-font-category-style);
    letter-spacing: var(--cs-font-category-letter-spacing);
    text-transform: var(--cs-font-category-text-transform);
    text-decoration: none;
    padding-right: 1.3125rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 0.6875rem;
    background: 0 0;
    transition: 0.25s;
}

.cs-resource-type-badge:after {
    content: '';
    display: block;
    position: absolute;
    top: 0.3125rem;
    bottom: 0.3125rem;
    left: 0;
    right: 0.6875rem;
    z-index: -1;
    background: var(--cs-layout-background);
    border-radius: var(--cs-tag-border-radius);
    box-shadow: 0px 5px 20px 0px rgba(var(--cs-color-box-shadow-rgb), 0.15);
    transition: 0.25s;
}

.cs-resource-type-badge .dashicons {
    margin-right: 0.5rem;
    color: var(--cs-color-button);
    font-size: 1rem;
    width: auto;
    height: auto;
}

/* Preview Toggle Button */
.cs-resource-preview-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Preview Frame */
.cs-resource-preview-frame {
    margin-top: 1rem;
    border: 1px solid var(--cs-color-border, #e0e0e0);
    border-radius: var(--cs-thumbnail-border-radius, 4px);
    overflow: hidden;
}

.cs-resource-preview-frame iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

/* Resource Meta in Archive Grid */
.cs-resource-date,
.cs-resource-type,
.cs-resource-size {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
}

.cs-resource-date .dashicons,
.cs-resource-type .dashicons,
.cs-resource-size .dashicons {
    font-size: 1rem;
    width: auto;
    height: auto;
    margin-right: 0.25rem;
    line-height: 1;
}
