/* ═══════════════════════════════════════════════════════════
   BLOG CSS — Premium Dark Theme Blog Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Blog Hero ─────────────────────────────────────────── */
.blog-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #f0f0f5;
    line-height: 1.15;
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

.blog-hero-desc {
    font-size: 1.1rem;
    color: #a0a0b8;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Blog Filter ───────────────────────────────────────── */
.blog-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0a0b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.filter-btn:hover {
    color: #f0f0f5;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #7c5bf5 0%, #5b9bf5 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 91, 245, 0.3);
}

/* ── Blog Section ──────────────────────────────────────── */
.blog-section {
    padding: 0 0 80px;
    min-height: 40vh;
}

/* ── Blog Grid ─────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Blog Card ─────────────────────────────────────────── */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 91, 245, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(124, 91, 245, 0.08);
}

.blog-card-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-thumbnail img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 91, 245, 0.08) 0%, rgba(91, 155, 245, 0.08) 100%);
    color: #6b6b80;
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #7c5bf5 0%, #5b9bf5 100%);
    backdrop-filter: blur(8px);
}

.blog-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: #6b6b80;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-reading {
    position: relative;
    padding-left: 14px;
}

.blog-card-reading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #6b6b80;
}

.blog-card-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: #f0f0f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #7c5bf5;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: #a0a0b8;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c5bf5;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-card-link:hover {
    color: #5b9bf5;
    gap: 10px;
}

.blog-card-link svg {
    transition: transform 0.3s ease;
}

.blog-card-link:hover svg {
    transform: translateX(3px);
}

/* ── Blog Empty ────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b6b80;
}

.blog-empty svg {
    margin-bottom: 20px;
    opacity: 0.4;
}

.blog-empty h3 {
    font-size: 1.3rem;
    color: #a0a0b8;
    margin-bottom: 8px;
}

.blog-empty p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Pagination ────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.blog-pagination nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0a0b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    color: #f0f0f5;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 91, 245, 0.3);
}

.blog-pagination .active span,
.blog-pagination span[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, #7c5bf5 0%, #5b9bf5 100%);
    border-color: transparent;
}

.blog-pagination .disabled span {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE / BLOG DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

.article-page {
    padding-top: 80px;
}

/* ── Article Header ────────────────────────────────────── */
.article-header {
    position: relative;
    padding: 80px 0 50px;
    overflow: hidden;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #a0a0b8;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.article-back:hover {
    color: #7c5bf5;
    gap: 12px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #a0a0b8;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #7c5bf5 0%, #5b9bf5 100%);
}

.article-dot {
    color: #6b6b80;
}

.article-date,
.article-reading {
    color: #6b6b80;
    font-size: 0.85rem;
}

.article-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #f0f0f5;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #a0a0b8;
    line-height: 1.7;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

/* ── Article Thumbnail ─────────────────────────────────── */
.article-thumbnail {
    margin-bottom: 3rem;
}

.article-thumbnail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Article Content / Prose ───────────────────────────── */
.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-body.prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #d0d0dd;
}

.article-body.prose h1,
.article-body.prose h2,
.article-body.prose h3,
.article-body.prose h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: #f0f0f5;
    margin-top: 2.2em;
    margin-bottom: 0.7em;
    line-height: 1.3;
}

.article-body.prose h2 { font-size: 1.6rem; }
.article-body.prose h3 { font-size: 1.3rem; }
.article-body.prose h4 { font-size: 1.1rem; }

.article-body.prose p {
    margin-bottom: 1.3em;
}

.article-body.prose a {
    color: #7c5bf5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-body.prose a:hover {
    color: #5b9bf5;
}

.article-body.prose strong {
    color: #f0f0f5;
    font-weight: 600;
}

.article-body.prose ul,
.article-body.prose ol {
    margin-bottom: 1.3em;
    padding-left: 1.5em;
}

.article-body.prose li {
    margin-bottom: 0.4em;
}

.article-body.prose blockquote {
    border-left: 3px solid #7c5bf5;
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(124, 91, 245, 0.06);
    border-radius: 0 12px 12px 0;
    color: #c0c0d4;
    font-style: italic;
}

.article-body.prose pre {
    background: #0e0e14;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-body.prose code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
}

.article-body.prose p code {
    background: rgba(124, 91, 245, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
    color: #c0a0ff;
}

.article-body.prose img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5em 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-body.prose hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5em 0;
}

.article-body.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.article-body.prose th,
.article-body.prose td {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.article-body.prose th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: #f0f0f5;
}

/* ── Article Footer Bar ────────────────────────────────── */
.article-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-tag-list {
    display: flex;
    gap: 8px;
}

.article-tag-list .tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #a0a0b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #6b6b80;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0a0b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: #f0f0f5;
    background: rgba(124, 91, 245, 0.15);
    border-color: rgba(124, 91, 245, 0.3);
}

/* ── Related Posts ─────────────────────────────────────── */
.related-posts {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2rem;
}

.related-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f0f5;
    margin-bottom: 2rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 50px;
    }

    .blog-grid,
    .blog-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .article-header {
        padding: 60px 0 30px;
    }

    .article-meta-top {
        flex-wrap: wrap;
        gap: 6px;
    }

    .article-footer-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .container-narrow {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-desc {
        font-size: 0.95rem;
    }

    .blog-card-title {
        font-size: 1rem;
    }

    .article-title {
        font-size: 1.7rem;
    }
}
