/* =========================================================
   css/blog.css — Blog listing page
   ========================================================= */

/* Default cursor: hidden site-wide */
*, *::before, *::after { cursor: none !important; }

/* ── Hero ── */
.blog-hero {
    padding: 140px 48px 64px;
    background: linear-gradient(160deg, var(--dark) 0%, #071e30 100%);
    border-bottom: 1px solid rgba(45, 116, 154, 0.18);
}
.blog-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.blog-hero-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--white);
    margin: 0.75rem 0 1rem;
}
.blog-subtitle {
    font-size: 1.1rem;
    color: rgba(229, 244, 250, 0.6);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Body ── */
.blog-body {
    background: var(--dark);
    padding: 56px 48px 96px;
    min-height: 60vh;
}
.blog-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Theme filter buttons ── */
.themes-section { margin-bottom: 3rem; }
.themes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.theme-button {
    background: transparent;
    border: 1.5px solid rgba(45, 116, 154, 0.35);
    color: rgba(229, 244, 250, 0.55);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    cursor: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.theme-button:hover {
    border-color: var(--primary);
    color: var(--white);
    background: rgba(45, 116, 154, 0.1);
}
.theme-button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ── Articles grid ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: linear-gradient(155deg,
        rgba(45, 116, 154, 0.1) 0%,
        rgba(5, 13, 18, 0.3) 100%);
    border: 1px solid rgba(45, 116, 154, 0.18);
    border-radius: 12px;
    overflow: hidden;
    cursor: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 116, 154, 0.55);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.article-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.article-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: rgba(45, 116, 154, 0.15);
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.article-card:hover .article-image img { transform: scale(1.04); }

.article-content {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}
.article-category {
    display: inline-block;
    background: rgba(45, 116, 154, 0.2);
    border: 1px solid rgba(45, 116, 154, 0.35);
    color: var(--primary);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}
.article-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin: 0;
}
.article-excerpt {
    font-size: 0.9rem;
    color: rgba(229, 244, 250, 0.55);
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}
.article-date {
    font-size: 0.78rem;
    color: rgba(229, 244, 250, 0.3);
    margin-top: 0.25rem;
}

/* ── States ── */
.blog-loading, .blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(229, 244, 250, 0.4);
}
.blog-empty h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 0.5rem; }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
}
.pagination-button {
    background: transparent;
    border: 1.5px solid rgba(45, 116, 154, 0.4);
    color: rgba(229, 244, 250, 0.7);
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    cursor: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pagination-button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.pagination-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
#page-info { font-size: 0.9rem; color: rgba(229, 244, 250, 0.45); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .blog-body  { padding: 48px 24px 72px; }
    .blog-hero  { padding: 130px 24px 56px; }
    .articles-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
}
@media (max-width: 560px) {
    .articles-grid { grid-template-columns: 1fr; }
    .themes-container { gap: 0.5rem; }
}