/* Resources Page Styles */
.resources-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.resources-header {
    text-align: center;
    margin-bottom: 50px;
}

.resources-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
}

.resources-header p {
    font-size: 1.2em;
    color: #666;
}

/* Filters Section */
.filters-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.clear-filters {
    padding: 10px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.3s;
}

.clear-filters:hover {
    background: #555;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.results-count {
    font-size: 1.1em;
    color: #666;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.per-page-selector label {
    font-size: 0.95em;
    color: #666;
}

.per-page-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.article-card.pinned {
    border: 2px solid #4CAF50;
    background: #f9fff9;
}

.article-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.75em;
}

.meta-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9em;
}

.badge-pinned {
    background: #4CAF50;
    color: white;
}

.badge-featured {
    background: #FF9800;
    color: white;
}

.badge-category {
    background: #e0e0e0;
    color: #333;
}

.badge-date {
    color: #666;
}

.badge-read-time {
    color: #666;
}

.article-title {
    font-size: 1.1em;
    margin: 10px 0;
    color: #333;
    line-height: 1.3;
    font-weight: 600;
}

.article-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 0.9em;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.75em;
    color: #555;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
}

.page-btn:hover:not(:disabled) {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.page-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    padding: 10px 15px;
    color: #666;
    font-size: 0.95em;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .resources-header h1 {
        font-size: 2em;
    }

    .filters-section {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .article-title {
        font-size: 1.3em;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .resources-header h1 {
        font-size: 2em;
    }

    .filters-section {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .article-title {
        font-size: 1.3em;
    }

    .pagination {
        flex-wrap: wrap;
    }
}