/* Browse Page Specific Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #3949ab;
    --light-color: #e8eaf6;
    --dark-color: #0d1238;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

.main-content {
    padding: 2rem 0 4rem;
    background-color: #f8f9fa;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    margin-bottom: 3rem;
}

.filter-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.filter-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.filter-card h3 i {
    color: var(--accent-color);
}

.filter-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-filter, .btn-reset {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-filter {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-filter:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-reset {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-reset:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Search Stats */
.search-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow);
}

.stats-card i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stats-info h4 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stats-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.search-info {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.search-info p {
    margin: 0;
    font-size: 1.1rem;
}

.search-info strong {
    color: var(--primary-color);
}

/* Documents Grid */
.documents-section {
    margin-bottom: 4rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.document-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.doc-header {
    background: linear-gradient(135deg, var(--light-color), #f3f4f9);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.doc-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.doc-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.year {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.doc-body {
    padding: 1.5rem;
    flex: 1;
}

.doc-title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.doc-number {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-abstract {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.doc-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.doc-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-footer {
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.btn-view, .btn-download {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-download {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-view:hover, .btn-download:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-light);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

.no-results h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Quick Links */
.quick-links {
    margin-top: 4rem;
}

.quick-links h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.link-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.link-card h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-filter, .btn-reset {
        width: 100%;
        justify-content: center;
    }
    
    .search-stats {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-footer {
        flex-direction: column;
    }
    
    .btn-view, .btn-download {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-card,
    .search-info,
    .stats-card,
    .link-card {
        padding: 1.25rem;
    }
    
    .doc-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .doc-meta {
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
}
