/* Data Resources page styles */

.page-hero { 
    background: linear-gradient(135deg, #f0f7ff, #f7fbff); 
    padding: 3.5rem 0; 
    text-align: center; 
    border-bottom: 1px solid #e5e9f0;
}
.page-hero .page-title { 
    font-size: 36px; 
    margin-bottom: 12px; 
    color: #1a2a3a;
    font-weight: 700;
}
.page-hero .page-subtitle { 
    color: #6b7b89; 
    max-width: 800px; 
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

.data-resources-content { 
    padding: 2.5rem 0; 
}

/* Search Bar */
.data-resources-search { 
    margin-bottom: 24px; 
}
.data-resources-search .search-wrap { 
    position: relative;
    max-width: 100%;
}
.data-resources-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.data-resources-search .search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.data-resources-search .search-field { 
    width: 100%; 
    padding: 12px 14px 12px 42px; 
    border-radius: 8px; 
    border: 1px solid #e0e5eb; 
    background: #fff; 
    font-size: 15px;
    transition: all 0.2s ease;
}
.data-resources-search .search-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.data-resources-search .search-field::placeholder {
    color: #9ca3af;
}

/* Upload Resource Section */
.upload-resource-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
    border-radius: 12px;
    border: 1px solid #d1e3f5;
    padding: 28px 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.upload-resource-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.upload-resource-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 8px 0;
}

.upload-resource-content p {
    color: #6b7b89;
    margin: 0 0 16px 0;
    line-height: 1.6;
    font-size: 15px;
}

.btn-upload-resource {
    display: inline-block;
    background: #154D8C;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-upload-resource:hover {
    background: #0f3d6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 77, 140, 0.3);
}

/* Resources Grid */
.data-resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    grid-auto-rows: auto auto 1fr auto;
}

/* Resource Card */
.data-resource-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
    align-items: start;
}

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

.data-resource-card-main {
    padding: 28px 32px;
    display: contents;
}

.resource-card-header {
    padding: 28px 32px 0;
    margin-bottom: 0;
}

.resource-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.resource-description {
    padding: 0 32px;
    color: #6b7b89;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Resource Meta */
.resource-meta {
    padding: 20px 32px;
    margin: 0 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background: #E9F0F580;
    border-radius: 8px;
    align-self: start;
}

.resource-meta-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.meta-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.meta-value {
    font-size: 14px;
    color: #1a2a3a;
    font-weight: 600;
}

/* Download Button */
.resource-card-footer {
    display: flex;
    align-items: center;
    padding: 20px 32px;
    background: #f9fafb;
    border-top: 1px solid #e5e9f0;
    border-radius: 0 0 12px 12px;
}

.btn-download-resource {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #154D8C;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-download-resource:hover {
    background: #0f3d6e;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 77, 140, 0.3);
}

.download-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.download-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* No Results */
.no-resources {
    text-align: center;
    padding: 60px 20px;
    color: #6b7b89;
}

.no-resources p {
    font-size: 16px;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid #e0e5eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .page-numbers.current {
    background: #154D8C;
    color: white;
    border-color: #154D8C;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
}

/* Responsive Design */
@media (min-width: 768px) {
    .data-resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        align-items: start;
        grid-auto-rows: auto auto 1fr auto;
    }
}

@media (max-width: 768px) {
    .data-resources-content {
        max-width: 370px;
    }
    
    .page-hero {
        padding: 2.5rem 0;
    }
    
    .page-hero .page-title {
        font-size: 28px;
    }
    
    .page-hero .page-subtitle {
        font-size: 15px;
    }
    
    .upload-resource-section {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .data-resource-card-main {
        padding: 20px;
    }
    
    .resource-card-footer {
        padding: 16px 20px;
    }
    
    .resource-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .resource-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-hero .page-title {
        font-size: 24px;
    }
    
    .data-resources-search .search-field {
        font-size: 14px;
        padding: 10px 12px 10px 38px;
    }
}
