/*
 * AspiraTrade -- blog hub, archives and search.
 *
 * Extracted from template-blog.php, where it was printed inline on every request.
 * Enqueued via includes/aspiratrade-assets.php so it can be cached and minified.
 */

.aspira-blog-wrapper {
        background-color: #070D12;
        color: #E2E8F0;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        min-height: 80vh;
    }
    .aspira-blog-wrapper h1, 
    .aspira-blog-wrapper h2, 
    .aspira-blog-wrapper h3, 
    .aspira-blog-wrapper h4 {
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    .blog-glass-card {
        background: linear-gradient(145deg, rgba(18, 35, 46, 0.75) 0%, rgba(11, 22, 30, 0.9) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .blog-glass-card:hover {
        border-color: rgba(212, 175, 55, 0.4);
        transform: translateY(-4px);
    }
    .blog-btn-gold {
        background: linear-gradient(135deg, #D4AF37 0%, #E8C868 50%, #B5952F 100%);
        color: #070D12 !important;
        font-weight: 700;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .blog-btn-gold:hover {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
        transform: translateY(-2px);
    }
    /*
     * Category filter row.
     *
     * This used to be `flex ... overflow-x-auto`, which left a native
     * horizontal scrollbar parked under the pills on desktop -- a grey bar the
     * full width of the card. The row now wraps onto as many lines as it needs
     * on anything tablet-sized and up, and only becomes a swipeable strip on
     * narrow screens, where the scrollbar is hidden and the trailing edge is
     * faded so it still reads as scrollable.
     */
    .aspira-chip-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .aspira-chip-row::-webkit-scrollbar {
        display: none;
    }

    @media (max-width: 639px) {
        .aspira-chip-row {
            flex-wrap: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x proximity;
            -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
                    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
        }
        .aspira-chip-row > * {
            scroll-snap-align: start;
            flex: 0 0 auto;
        }
    }

    .category-chip {
        transition: all 0.25s ease;
        background: rgba(255, 255, 255, 0.02);
    }
    .category-chip:hover {
        background: rgba(212, 175, 55, 0.08);
        color: #F3E5AB;
    }
    .category-chip.active {
        background: #D4AF37;
        color: #070D12;
        font-weight: 700;
        border-color: #D4AF37;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
    }
    .article-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #FFFFFF;
        margin-top: 1.75rem;
        margin-bottom: 0.75rem;
        border-left: 4px solid #D4AF37;
        padding-left: 0.75rem;
    }
    .article-content h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #F3E5AB;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .article-content p {
        line-height: 1.8;
        margin-bottom: 1rem;
        color: #CBD5E1;
    }
    .article-content ul, .article-content ol {
        margin-left: 1.5rem;
        margin-bottom: 1.25rem;
        line-height: 1.75;
        color: #CBD5E1;
    }
    .article-content li {
        margin-bottom: 0.5rem;
    }
    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        background: #0B161D;
        border-radius: 8px;
        overflow: hidden;
    }
    .article-content th, .article-content td {
        padding: 12px 16px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    #readingProgress {
        width: 0%;
        transition: width 0.1s ease;
    }

/* --- Pagination (paginate_links output) --- */
.aspira-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.aspira-pagination .page-numbers:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #F3E5AB;
    background: rgba(212, 175, 55, 0.08);
}
.aspira-pagination .page-numbers.current {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #070D12;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}
.aspira-pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

/* --- Comments --- */
.aspira-single-wrapper .comment-list,
.single-glass-card .comment-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.single-glass-card .comment-body {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.single-glass-card input[type="text"],
.single-glass-card input[type="email"],
.single-glass-card input[type="url"],
.single-glass-card textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    color: #E2E8F0;
}
.single-glass-card input:focus,
.single-glass-card textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
}
.single-glass-card .submit,
.single-glass-card input[type="submit"] {
    background: linear-gradient(135deg, #D4AF37 0%, #E8C868 50%, #B5952F 100%);
    color: #070D12;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    cursor: pointer;
}
