/**
 * Dynamic Resources Manager Styles
 */

/* Wrapper */
.drm-resources-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Pagination Container */
.drm-pagination-container {
    margin-top: 40px;
}

/* Filter Buttons */
.drm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.drm-filter-btn {
    padding: 12px 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.drm-filter-btn:hover {
    background: #fff;
    border-color: #dc2626;
    color: #dc2626;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.15);
}

.drm-filter-btn.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

/* Resources Grid */
.drm-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* Resource Card */
.drm-resource-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.drm-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

/* Resource Image */
.drm-resource-image {
    width: 100%;
    height: auto;
    padding: 20px;
    background: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 80px;
}

.drm-resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.drm-resource-card:hover .drm-resource-image img {
    transform: scale(1.05);
}

/* Icon placeholder when no featured image */
.drm-resource-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drm-resource-icon img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Resource Content */
.drm-resource-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.drm-resource-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.drm-resource-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.drm-resource-excerpt {
    font-size: 13px;
    color: #737373;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.drm-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.drm-resource-link:hover {
    color: #b91c1c;
    gap: 10px;
}

.drm-resource-link::after {
    content: '›';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.drm-resource-link:hover::after {
    transform: translateX(4px);
}

/* No Resources */
.drm-no-resources {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.drm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.drm-pagination a,
.drm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.drm-pagination a:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

.drm-pagination .current {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

.drm-pagination .dots {
    background: transparent;
    border: none;
    color: #999;
    box-shadow: none;
}

/* Loading State */
.drm-resources-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .drm-resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .drm-resources-wrapper {
        padding: 15px;
    }

    .drm-filters {
        gap: 8px;
        margin-bottom: 20px;
    }

    .drm-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .drm-resources-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .drm-resource-image {
        padding: 15px;
        min-height: 60px;
    }
    
    .drm-resource-icon {
        width: 40px;
        height: 40px;
    }
    
    .drm-resource-icon img {
        max-width: 40px;
        max-height: 40px;
    }

    .drm-resource-content {
        padding: 15px;
    }

    .drm-resource-title {
        font-size: 16px;
    }
    
    .drm-pagination a,
    .drm-pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .drm-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .drm-resource-image {
        padding: 12px;
        min-height: 50px;
    }
    
    .drm-resource-icon {
        width: 36px;
        height: 36px;
    }
    
    .drm-resource-icon img {
        max-width: 36px;
        max-height: 36px;
    }
    
    .drm-pagination a,
    .drm-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
