/* Blog Directory Pages Stylesheet */

/* Blog Header */
.blog-header-section {
    padding: 4rem 0 2rem 0;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Search and Filters Panel */
.blog-main-section {
    padding: 2rem 0 6rem 0;
}

.search-filter-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.25rem 2rem;
    border-color: rgba(0, 229, 255, 0.1);
}

.search-box {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

#search-input {
    width: 100%;
    background: rgba(2, 3, 6, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    color: #ffffff;
    transition: var(--transition-fast);
}

#search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 229, 255, 0.02);
}

.category-filters {
    display: flex;
    gap: 0.75rem;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.03);
}

.filter-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Articles Feed Grid */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.article-feed-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-toggle-btn:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.bookmark-toggle-btn.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.feed-title {
    font-size: 1.35rem;
    line-height: 1.35;
}

.feed-title a {
    color: #ffffff;
}

.feed-title a:hover {
    color: var(--accent-cyan);
}

.feed-summary {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.feed-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.read-btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.read-btn i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.read-btn:hover i {
    transform: translateX(3px);
}

/* Empty Search Results Alert */
.no-search-results {
    grid-column: span 3;
    text-align: center;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-search-results i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.no-search-results h3 {
    font-size: 1.5rem;
}

.no-search-results p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-filter-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .category-filters {
        justify-content: center;
    }
    .blog-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .no-search-results {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .blog-articles-grid {
        grid-template-columns: 1fr;
    }
    .no-search-results {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .category-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .filter-btn {
        flex-grow: 1;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}
