/* Blog Header */
.blog-header {
    text-align: center;
    margin: var(--space-xl) 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.blog-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Blog Controls */
.blog-controls {
    margin-bottom: var(--space-xl);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.search-box input {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.search-box i {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--paper-dark);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.sort-dropdown select {
    padding: var(--space-sm) var(--space-md);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    min-width: 150px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--space-lg);
}

.blog-meta {
    display: flex;
    gap: var(--space-md);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-meta i {
    color: var(--primary);
}

.blog-content h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.blog-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    padding: var(--space-xs) var(--space-sm);
    background: var(--paper-dark);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination-btn {
    padding: var(--space-sm) var(--space-md);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--paper-dark);
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Author Page */
.author-header {
    text-align: center;
    margin: var(--space-xl) 0;
    padding: var(--space-xl);
    background: var(--paper-dark);
    border-radius: var(--radius-md);
}

.author-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.author-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-sort {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: center;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown select {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: var(--space-xl);
}

.loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(139, 69, 19, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: var(--space-xl);
    background: var(--paper-dark);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
}

.no-results h3 {
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.no-results p {
    color: var(--text-light);
} 