/* assets\styles\blogs.css */

/* //////////////////////////////////////////////////
   MAGAZINE BLOG — RESET & VARS
   ////////////////////////////////////////////////// */
    .magazine-container {
        margin: 0 auto;
        margin-bottom: 30px;
        padding: 100px 24px 60px;
        background-color: var(--surface);
    }

    /* //////////////////////////////////////////////////
   TOP BAR — CATEGORIES + SEARCH
   ////////////////////////////////////////////////// */
    .magazine-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 24px;
        border-bottom: 2px solid var(--text);
        flex-wrap: wrap;
    }

    .magazine-section-label {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: var(--primary);
    }

    .magazine-tag-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .magazine-tag {
        padding: 8px 18px;
        border-radius: 0;
        background: var(--text);
        color: var(--bg);
        text-decoration: none;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        transition: all 0.2s ease;
    }

    .magazine-tag:hover,
    .magazine-tag.active {
        background: var(--primary);
        color: #fff;
    }

    .magazine-search {
        display: flex;
        align-items: center;
        gap: 0;
        border-bottom: 2px solid var(--border);
        transition: border-color 0.2s ease;
    }

    .magazine-search:focus-within {
        border-color: var(--text);
    }

    .magazine-search input {
        border: none;
        padding: 10px 0;
        font-size: 14px;
        font-family: Georgia, 'Times New Roman', serif;
        font-style: italic;
        background: transparent;
        color: var(--text);
        width: 180px;
        outline: none;
    }

    .magazine-search input::placeholder {
        color: var(--text-muted);
    }

    .magazine-search button {
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
        padding: 10px 0 10px 12px;
        font-size: 18px;
    }

    /* //////////////////////////////////////////////////
   HERO POST
   ////////////////////////////////////////////////// */
    .hero-post {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
        margin-bottom: 48px;
        align-items: center;
    }

    .hero-post-image {
        aspect-ratio: 4/3;
        overflow: hidden;
        position: relative;
        display: block;
        text-decoration: none;
    }

    .hero-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .hero-post:hover .hero-post-image img {
        transform: scale(1.03);
    }

    .hero-post-image .hero-label {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 6px 16px;
        background: var(--primary);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .hero-post-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-post-category {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: var(--primary);
    }

    .hero-post-title {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: clamp(2rem, 3.5vw, 3rem);
        font-weight: 700;
        color: var(--text);
        line-height: 1.15;
        letter-spacing: -0.5px;
        margin: 0;
    }

    .hero-post-title a {
        color: inherit;
        text-decoration: none;
    }

    .hero-post-title a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 6px;
    }

    .hero-post-excerpt {
        font-size: 16px;
        color: var(--text-muted);
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-post-meta {
        display: flex;
        align-items: center;
        gap: 16px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-muted);
        font-weight: 600;
    }

    .hero-post-read {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--text);
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-top: 4px;
        transition: gap 0.2s ease;
    }

    .hero-post-read:hover {
        gap: 14px;
    }

    .hero-post-read::after {
        content: '→';
        font-size: 18px;
    }

    /* //////////////////////////////////////////////////
   SECTION HEADER
   ////////////////////////////////////////////////// */
    .section-header-magazine {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 28px;
    }

    .section-header-magazine h2 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        margin: 0;
    }

    .section-header-magazine .line {
        flex: 1;
        height: 2px;
        background: var(--text);
    }

    /* //////////////////////////////////////////////////
   POSTS GRID — Magazine Layout
   ////////////////////////////////////////////////// */
    .posts-grid-magazine {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        margin-bottom: 40px;
    }

    .post-card-magazine {
        position: relative;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
    }

    .post-card-magazine.featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 24px;
        border-bottom: 2px solid var(--text);
        padding-bottom: 28px;
    }

    .post-card-image-magazine {
        aspect-ratio: 3/2;
        overflow: hidden;
        margin-bottom: 16px;
        display: block;
        text-decoration: none;
    }

    .post-card-magazine.featured .post-card-image-magazine {
        aspect-ratio: 16/9;
        margin-bottom: 0;
    }

    .post-card-image-magazine img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .post-card-magazine:hover .post-card-image-magazine img {
        transform: scale(1.03);
    }

    .post-card-tag-magazine {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .post-card-title-magazine {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
        line-height: 1.3;
        margin-bottom: 8px;
        letter-spacing: -0.2px;
    }

    .post-card-magazine.featured .post-card-title-magazine {
        font-size: 22px;
    }

    .post-card-title-magazine a {
        color: inherit;
        text-decoration: none;
    }

    .post-card-title-magazine a:hover {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
    }

    .post-card-excerpt-magazine {
        font-size: 13px;
        color: var(--text-muted);
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .post-card-meta-magazine {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-muted);
        font-weight: 600;
    }

    .post-card-content-magazine {
        display: flex;
        flex-direction: column;
    }

    .post-card-magazine.featured .post-card-content-magazine {
        justify-content: center;
    }

    /* //////////////////////////////////////////////////
   EDITOR PICKS SIDEBAR
   ////////////////////////////////////////////////// */
    .editor-picks-row {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        margin-bottom: 48px;
        padding-bottom: 40px;
        border-bottom: 2px solid var(--text);
    }

    .editor-picks-sidebar {
        border-left: 2px solid var(--text);
        padding-left: 28px;
    }

    .editor-picks-title {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .editor-pick-item {
        display: flex;
        gap: 14px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        text-decoration: none;
    }

    .editor-pick-item:last-child {
        border-bottom: none;
    }

    .editor-pick-number {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 28px;
        font-weight: 700;
        color: var(--border);
        line-height: 1;
        flex-shrink: 0;
    }

    .editor-pick-info h4 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 4px;
        line-height: 1.3;
    }

    .editor-pick-info span {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-muted);
    }

    .editor-pick-item:hover .editor-pick-info h4 {
        text-decoration: underline;
    }

    /* //////////////////////////////////////////////////
   PAGINATION
   ////////////////////////////////////////////////// */
    .pagination-magazine {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: 20px;
        padding-top: 28px;
        border-top: 2px solid var(--text);
    }

    .page-btn {
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .page-btn:hover {
        color: var(--text);
        background: var(--sidebar-hover);
    }

    .page-btn.active {
        background: var(--text);
        color: var(--bg);
    }

    .page-btn.disabled {
        opacity: 0.2;
        pointer-events: none;
    }

    /* //////////////////////////////////////////////////
   EMPTY STATE
   ////////////////////////////////////////////////// */
    .magazine-empty {
        text-align: center;
        padding: 80px 20px;
        border: 2px solid var(--text);
    }

    .magazine-empty h2 {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .magazine-empty p {
        color: var(--text-muted);
        font-size: 15px;
        margin-bottom: 24px;
    }

    /* //////////////////////////////////////////////////
   RESPONSIVE
   ////////////////////////////////////////////////// */
    @media (max-width: 991px) {
        .hero-post {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .editor-picks-row {
            grid-template-columns: 1fr;
        }

        .editor-picks-sidebar {
            border-left: none;
            padding-left: 0;
            border-top: 2px solid var(--text);
            padding-top: 24px;
        }

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

        .post-card-magazine.featured {
            grid-column: span 1;
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 600px) {
        .magazine-container {
            padding: 80px 16px 40px;
        }

        .magazine-topbar {
            flex-direction: column;
            align-items: stretch;
        }

        .magazine-search input {
            width: 100%;
        }

        .posts-grid-magazine {
            grid-template-columns: 1fr;
        }

        .hero-post-title {
            font-size: 1.6rem;
        }
    }
