/**
 * PoshArticles™ Hub Styles
 * Browse and filter articles
 */

.articles-hub {
    min-height: calc(100vh - 200px);
    background: #f5f7fa;
    padding-top: 0;
}

/* Hero Section */
.hub-hero {
    background: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%) !important;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hub-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #fff !important;
}

.tagline {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    opacity: 0.95;
    color: #fff !important;
}

.subtitle {
    font-size: 18px;
    margin: 0 0 40px 0;
    opacity: 0.9;
    color: #fff !important;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    font-size: 16px;
    outline: none;
}

.btn-search {
    padding: 16px 32px;
    background: #8B1538 !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #6B0F2A !important;
}

/* Hub Container */
.hub-container {
    max-width: 1400px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    position: relative;
}

/* Sidebar */
.hub-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-list a:hover {
    background: #f5f5f5;
    color: #8B1538 !important;
}

.filter-list a.active {
    background: #8B1538 !important;
    color: #fff !important;
    font-weight: 600;
}

.filter-list .count {
    font-size: 12px;
    opacity: 0.7;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    padding: 6px 12px;
    background: #f0f0f0;
    color: #8B1538 !important;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-cloud .tag:hover {
    background: #8B1538 !important;
    color: #fff !important;
}

.tag-cloud .tag.active {
    background: #8B1538 !important;
    color: #fff !important;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%) !important;
    color: #fff !important;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.sidebar-cta h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #fff !important;
}

.sidebar-cta p {
    margin: 0 0 20px 0;
    font-size: 14px;
    opacity: 0.9;
    color: #fff !important;
}

.sidebar-cta .btn {
    width: 100%;
    background: #fff;
    color: #8B1538;
}

.sidebar-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Hub Content */
.hub-content {
    min-height: 600px;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.filter-badge .remove {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.filter-badge .remove:hover {
    color: #1b5e20;
}

.clear-all {
    margin-left: auto;
    color: #8B1538;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.clear-all:hover {
    text-decoration: underline;
}

/* Results Header */
.results-header {
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta-top {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}

.card-category {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.card-city {
    color: #666;
}

.card-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #8B1538;
}

.card-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.author-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8B1538;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-mini {
    padding: 4px 10px;
    background: #f0f0f0;
    color: #8B1538;
    border-radius: 12px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-mini:hover {
    background: #8B1538;
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn, .page-num {
    padding: 10px 16px;
    background: #fff;
    color: #8B1538;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.page-btn:hover, .page-num:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.page-num.active {
    background: #8B1538;
    color: #fff;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.empty-state p {
    color: #666;
    margin: 0 0 30px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hub-container {
        grid-template-columns: 1fr;
    }
    
    .hub-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hub-hero h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
}

.btn-primary {
    background: #8B1538 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #6B0F2A !important;
    transform: translateY(-2px);
}

