/* WOX Resources archive + single page styles
 * Matches the rest of the wox-search plugin's visual language.
 */

.wox-resources-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.wox-resources-filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.wox-resources-filters select:focus {
    outline: none;
    border-color: #16355f;
}

.wox-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wox-resource-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.wox-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(22, 53, 95, 0.1);
    border-color: #eda82c;
}
.wox-resource-card.is-featured {
    border-color: #eda82c;
    box-shadow: 0 2px 8px rgba(237, 168, 44, 0.15);
}

.wox-resource-thumb {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}
.wox-resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wox-resource-body {
    padding: 16px 18px 18px;
}

.wox-resource-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wox-resource-type-chip {
    background: #eef2f7;
    color: #16355f;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.wox-resource-featured-chip {
    background: #eda82c;
    color: #fff;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.wox-resource-title {
    font-size: 17px;
    font-weight: 700;
    color: #16355f;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.wox-resource-summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.wox-resource-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
    margin-top: 10px;
}
.wox-resource-author {
    font-weight: 600;
    color: #374151;
}

.wox-resource-pagination {
    text-align: center;
    margin-top: 24px;
}
.wox-resource-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 2px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.wox-resource-pagination .page-numbers.current {
    background: #16355f;
    color: #fff;
    border-color: #16355f;
}
.wox-resource-pagination .page-numbers:hover:not(.current):not(.dots) {
    background: #f3f4f6;
    border-color: #16355f;
}

@media (max-width: 600px) {
    .wox-resource-grid {
        grid-template-columns: 1fr;
    }
}
