/**
 * blog-desktop.css
 * Desktop-specific enhancements (loaded only on screens ≥900px)
 */

/* ── Header ── */
@media (min-width: 900px) {
    .header {
        padding: 1rem 2rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* ── Container ── */
    .container {
        padding: 2rem;
        max-width: 1200px;
        min-height: 100dvh;
        width: 100vw;
    }

    /* ── Blog Overview ── */
    .blog-filters {
        flex-direction: row;
        gap: 1.5rem;
    }

    .search-input {
        flex: 1;
    }

    .category-filter {
        min-width: 250px;
    }

    /* ── Entries Grid - Masonry Layout ── */
    .blog-entries {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }

    /* Featured cards span larger */
    .blog-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .blog-card.featured .card-image {
        height: 250px;
    }

    .blog-card {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    /* ── Blog Article ── */
    .blog-article {
        max-width: 800px;
        margin: 0 auto;
    }

    .blog-taskbar {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .entry-title {
        font-size: 2rem;
    }

    /* ── Blog Content ── */
    .blog-content {
        margin-bottom: 4rem;
        font-size: 1.05rem;
    }

    .blog-paragraph {
        text-align: justify;
        hyphens: auto;
    }

    .blog-image {
        margin: 3rem 0;
    }

    /* ── Code Blocks with Line Numbers ── */
    .code-block {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .code-block code {
        font-size: 0.95rem;
    }

    /* ── Lists ── */
    .blog-list {
        margin-left: 2rem;
    }

    .blog-list li {
        margin-bottom: 0.75rem;
    }

    /* ── Callouts ── */
    .blog-callout {
        padding: 1.5rem;
        margin: 2rem 0;
        border-radius: 8px;
    }

    /* ── Related Articles - Grid ── */
    .related-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .blog-related {
        margin-top: 4rem;
        padding-top: 3rem;
    }

    /* ── Typography Enhancements ── */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .blog-heading {
        margin-top: 2.5em;
        margin-bottom: 1.25em;
    }

    /* ── Card Improvements ── */
    .card-content {
        padding: 2rem;
    }

    .card-meta {
        gap: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    /* ── Footer ── */
    .footer {
        padding: 1.25rem 2rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
    }

    .footer-content ul {
        gap: 0.4rem;
        margin-top: 0;
    }

    /* ── Meta Header ── */
    .meta-row {
        gap: 2rem;
    }

    .tags-row {
        gap: 0.75rem;
    }

    /* ── Hover Effects ── */
    .blog-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* ── Smooth Reading Experience ── */
    body {
        font-size: 16px;
        line-height: 1.75;
    }

    .blog-article {
        line-height: 1.85;
    }

    /* ── Table Styling (if added) ── */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 2rem 0;
    }

    table th,
    table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid var(--faint-contrast);
    }

    table th {
        background-color: var(--bg-faint-contrast);
        font-weight: 700;
    }

    table tr:hover {
        background-color: var(--bg-faint-contrast);
    }

    /* ── Large Screen Content Layout ── */
    .blog-overview {
        animation: fadeIn 0.3s ease-in;
    }

    .blog-entry-view {
        animation: fadeIn 0.3s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ── Better Typography with Wider Line Length ── */
    .blog-content {
        columns: 1;
    }

    .blog-content h2 {
        break-after: avoid;
    }

    /* ── Sidebar-like positioning for featured ── */
    .blog-card.featured {
        order: -1;
    }
}

/* ── Ultra-wide screens (1400px+) ── */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .blog-article {
        max-width: 900px;
    }

    .blog-entries {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }

    .blog-card.featured {
        grid-column: span 1;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.9rem; }
}
