/**
 * OneDFCCI Resources - Frontend Styles
 * 
 * @package OneDFCCI_Resources
 */

/* Base Styles */
.onedfcci-resources-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Shortcode Wrapper Styles */
.onedfcci-resources-wrapper {
    margin: 30px 0;
    font-family: inherit;
}

/* Filter Styles */
.onedfcci-resources-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.resources-filter-form .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.btn-filter, .btn-clear {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-filter {
    background-color: #007cba;
    color: #fff;
}

.btn-filter:hover {
    background-color: #005a87;
    color: #fff;
}

.btn-clear {
    background-color: #6c757d;
    color: #fff;
}

.btn-clear:hover {
    background-color: #545b62;
    color: #fff;
    text-decoration: none;
}

/* Resources List Styles */
.onedfcci-resources-list {
    margin: 20px 0;
}

.onedfcci-resources-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

/* Grid Layout - 3x2 Card Layout */
.onedfcci-resources-grid.layout-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 20px auto;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .onedfcci-resources-grid.layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .onedfcci-resources-grid.layout-grid {
        grid-template-columns: 1fr;
    }
}

/* List Layout */
.onedfcci-resources-grid.layout-list {
    grid-template-columns: 1fr;
}

.onedfcci-resources-grid.layout-list .resource-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.onedfcci-resources-grid.layout-list .resource-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.onedfcci-resources-grid.layout-list .resource-content {
    flex: 1;
}

/* Resource Item Styles */
.resource-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    border-color: #007cba;
}

.resource-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-item:hover::before {
    opacity: 1;
}

/* Resource Icon */
.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.resource-icon .type-icon {
    font-size: 24px;
    line-height: 1;
}

/* Resource Content */
.resource-content {
    flex: 1;
}

.resource-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #2c3e50;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.resource-item:hover .resource-title {
    color: #007cba;
}

.resource-categories {
    margin-bottom: 10px;
    font-size: 13px;
}

.categories-label {
    font-weight: 600;
    color: #6c757d;
}

.resource-categories {
    color: #007cba;
}

.resource-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.resource-type-label {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    text-transform: capitalize;
}

.download-count {
    color: #6c757d;
    font-weight: 500;
}

/* Resource Actions */
.resource-actions {
    margin-top: auto;
}

.btn-download, .btn-view, .btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-download:hover, .btn-view:hover, .btn-read-more:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-view {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-view:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-read-more {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #5a2d91, #4c1d7a);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

.onedfcci-resource-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.onedfcci-resource-card .resource-featured-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onedfcci-resource-card .resource-featured-image .resource-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.onedfcci-resource-card:hover .resource-thumbnail {
    transform: scale(1.05);
}

.onedfcci-resource-card .resource-header,
.onedfcci-resource-card .resource-excerpt,
.onedfcci-resource-card .resource-meta {
    padding: 0 20px;
}

.onedfcci-resource-card .resource-header {
    padding-top: 20px;
}

.onedfcci-resource-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.onedfcci-resource-card .resource-header {
    margin-bottom: 15px;
}

.onedfcci-resource-card .resource-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #2c3e50;
    line-height: 1.3;
}

.onedfcci-resource-card .resource-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.onedfcci-resource-card .resource-title a:hover {
    color: #3498db;
}

.onedfcci-resource-card .resource-categories-date {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.onedfcci-resource-card .resource-category {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.onedfcci-resource-card .resource-date {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-left: auto;
}

.onedfcci-resource-card .resource-excerpt {
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.onedfcci-resource-card .resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    padding-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #888;
}

.onedfcci-resource-card .resource-date {
    font-style: italic;
}

.onedfcci-resource-card .resource-actions {
    display: flex;
    gap: 10px;
}

.onedfcci-resource-card .resource-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.onedfcci-resource-card .resource-actions .btn-primary {
    background: #3498db;
    color: #fff;
}

.onedfcci-resource-card .resource-actions .btn-primary:hover {
    background: #2980b9;
}

.onedfcci-resource-card .resource-actions .btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.onedfcci-resource-card .resource-actions .btn-secondary:hover {
    background: #7f8c8d;
}

/* Resource Details Styles */
.resource-details {
    position: relative;
    width: 100%;
    grid-column: 1 / -1; /* Span all columns in the grid */
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.resource-details-content {
    background: #fff;
    padding: 0;
    position: relative;
}

.resource-details-cover {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.resource-details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.resource-details-content h2 {
    padding: 20px 30px 10px;
    margin: 0;
    font-size: 24px;
    color: #333;
}

.resource-details-content > *:not(.resource-details-cover):not(h2):not(.close-details) {
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 15px;
}

.resource-details-content .close-details {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.resource-details-content .close-details:hover {
    background: rgba(0,0,0,0.9);
}

.resource-details-content h2 {
    color: #2c3e50;
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.resource-full-content {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

.resource-items-list h4 {
    color: #2c3e50;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.resource-item-detail {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
}

.resource-item-icon {
    margin-right: 15px;
    font-size: 24px;
    flex-shrink: 0;
}

.resource-item-info {
    flex: 1;
}

.resource-item-info h5 {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.resource-type-label {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.resource-item-actions {
    margin-left: 15px;
}

.resource-item-simple {
    padding: 8px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.resource-item-simple:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resource-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.resource-name {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.resource-stats {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.download-count {
    color: #666;
    font-weight: 500;
}

button.close-details-btn {
    margin: 20px auto 30px !important;
    padding: 12px 24px !important;
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: background 0.2s ease;
    display: block !important;
    text-align: center !important;
    min-width: 180px !important;
}

button.close-details-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

/* Filters and Search */
.onedfcci-resources-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.onedfcci-filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.onedfcci-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.onedfcci-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.onedfcci-filter-group select,
.onedfcci-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.onedfcci-filter-group select:focus,
.onedfcci-filter-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.onedfcci-filter-submit {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.onedfcci-filter-submit:hover {
    background: #2980b9;
}

/* Pagination */
.onedfcci-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.onedfcci-pagination .page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.onedfcci-pagination .page-link:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.onedfcci-pagination .page-link.current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.onedfcci-pagination .page-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background: #f8f9fa;
}

/* Resource Submission Form */
.onedfcci-resources-submit {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.onedfcci-submit-form .form-row {
    margin-bottom: 20px;
}

.onedfcci-submit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onedfcci-submit-form label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.onedfcci-submit-form label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.onedfcci-submit-form input,
.onedfcci-submit-form select,
.onedfcci-submit-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.onedfcci-submit-form input:focus,
.onedfcci-submit-form select:focus,
.onedfcci-submit-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.onedfcci-submit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.onedfcci-submit-form .form-description {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.onedfcci-submit-form .submit-button {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.onedfcci-submit-form .submit-button:hover {
    background: #229954;
}

.onedfcci-submit-form .submit-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* User Dashboard */
.onedfcci-resources-dashboard {
    margin: 20px 0;
}

.onedfcci-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.onedfcci-dashboard-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 300;
}

.onedfcci-dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.onedfcci-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.onedfcci-stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.onedfcci-stat-box .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.onedfcci-stat-box .stat-label {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.onedfcci-dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.onedfcci-dashboard-actions .action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.onedfcci-dashboard-actions .action-btn.primary {
    background: #3498db;
    color: #fff;
}

.onedfcci-dashboard-actions .action-btn.primary:hover {
    background: #2980b9;
}

.onedfcci-dashboard-actions .action-btn.secondary {
    background: #95a5a6;
    color: #fff;
}

.onedfcci-dashboard-actions .action-btn.secondary:hover {
    background: #7f8c8d;
}

/* Messages and Alerts */
.onedfcci-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid;
}

.onedfcci-message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.onedfcci-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.onedfcci-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.onedfcci-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Loading States */
.onedfcci-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.onedfcci-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: onedfcci-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes onedfcci-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.onedfcci-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.onedfcci-empty-state .empty-icon {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.onedfcci-empty-state h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-weight: 600;
}

.onedfcci-empty-state p {
    margin: 0 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .onedfcci-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .onedfcci-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .onedfcci-filter-group select,
    .onedfcci-filter-group input {
        min-width: auto;
        width: 100%;
    }
    
    .onedfcci-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .onedfcci-dashboard-actions {
        flex-direction: column;
    }
    
    .onedfcci-dashboard-actions .action-btn {
        justify-content: center;
        width: 100%;
    }
    
    .onedfcci-resource-card .resource-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Pagination Styles */
.onedfcci-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-color: #007cba;
}

.page-link.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    cursor: default;
}

.page-link.prev-page,
.page-link.next-page {
    padding: 8px 16px;
    gap: 5px;
}

.page-dots {
    color: #6c757d;
    padding: 0 5px;
    font-weight: bold;
}

.page-icon {
    font-size: 16px;
    line-height: 1;
}

/* No Resources Message */
.onedfcci-no-resources {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.onedfcci-no-resources p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Resource Type Specific Styles */
.resource-type-document .resource-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.resource-type-video .resource-icon {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
}

.resource-type-audio .resource-icon {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.resource-type-link .resource-icon {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.resource-type-file .resource-icon {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
}

.resource-type-guide .resource-icon {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

/* Enhanced Responsive Design */
@media screen and (max-width: 768px) {
    .onedfcci-resources-wrapper {
        margin: 20px 0;
    }
    
    .onedfcci-resources-filters {
        padding: 15px;
    }
    
    .resources-filter-form .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        justify-content: center;
        width: 100%;
    }
    
    .btn-filter, .btn-clear {
        flex: 1;
        justify-content: center;
    }
    
    .onedfcci-resources-grid.layout-grid {
        grid-template-columns: 1fr;
    }
    
    .onedfcci-resources-grid.layout-list .resource-item {
        flex-direction: column;
        text-align: center;
    }
    
    .onedfcci-resources-grid.layout-list .resource-icon {
        align-self: center;
        margin-bottom: 15px;
    }
    
    .resource-item {
        padding: 20px;
    }
    
    .resource-title {
        font-size: 18px;
    }
    
    .resource-meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .onedfcci-pagination {
        margin: 30px 0 15px;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .page-link.prev-page,
    .page-link.next-page {
        padding: 6px 12px;
    }
}

@media screen and (max-width: 480px) {
    .onedfcci-resources-filters {
        padding: 12px;
    }
    
    .resource-item {
        padding: 15px;
    }
    
    .resource-title {
        font-size: 16px;
    }
    
    .resource-description {
        font-size: 13px;
    }
    
    .btn-download, .btn-view, .btn-read-more {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .page-numbers {
        gap: 3px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    }
    
    .onedfcci-pagination {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .onedfcci-resources-submit {
        padding: 20px;
        margin: 10px 0;
    }
    
    .onedfcci-dashboard-header {
        padding: 20px;
    }
    
    .onedfcci-dashboard-header h2 {
        font-size: 24px;
    }
}

/* Accessibility */
.onedfcci-resources-container *:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.onedfcci-resources-container .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .onedfcci-resources-filters,
    .onedfcci-pagination,
    .onedfcci-dashboard-actions {
        display: none;
    }
    
    .onedfcci-resource-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}