/* =========================
   Blog Page Only Styles
   Global header/footer/font/container/root must stay in app.blade.php
========================= */

.breadcrumb-section {
    padding: 26px 0 12px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.breadcrumb .current,
.breadcrumb a:hover {
    color: var(--primary);
}

/* =========================
   Blog Hero
========================= */

.blog-hero {
    padding: 12px 0 34px;
}

.blog-hero .hero-card {
    border-radius: 36px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #111827, #19346f 58%, #2356d8);
    color: #fff;
    padding: 38px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.blog-hero .hero-card::after {
    content: "BLOG";
    position: absolute;
    left: 28px;
    bottom: -18px;
    font-size: 140px;
    font-weight: 950;
    color: rgba(255, 255, 255, .06);
    letter-spacing: -4px;
    pointer-events: none;
}

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

.blog-hero .hero-kicker {
    display: inline-flex;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 14px;
}

.blog-hero .hero-content h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.3;
}

.blog-hero .hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    line-height: 2;
}

.blog-hero .hero-search {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.blog-hero .hero-search h3 {
    margin: 0 0 12px;
}

.blog-hero .hero-search input {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 18px;
    padding: 0 14px;
    outline: none;
}

.blog-hero .hero-search button {
    width: 100%;
    margin-top: 10px;
    height: 48px;
    border: 0;
    border-radius: 18px;
    background: var(--accent);
    font-weight: 950;
    cursor: pointer;
}

/* =========================
   Blog Layout
========================= */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 24px;
    align-items: start;
    padding-bottom: 44px;
}

.main-panel,
.sidebar-card,
.article-card,
.featured-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(30, 30, 30, .08);
    box-shadow: var(--shadow-soft);
    border-radius: 30px;
}

.main-panel {
    padding: 24px;
    min-width: 0;
}

.panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 0;
    font-size: 26px;
}

.panel-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   Category Pills
========================= */

.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pill {
    border: 1px solid rgba(35, 86, 216, .14);
    background: #f3f6ff;
    color: var(--primary-2);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.pill.active {
    background: var(--primary);
    color: #fff;
}

/* =========================
   Featured Article
========================= */

.featured-card {
    overflow: hidden;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.featured-visual {
    min-height: 310px;
    background: linear-gradient(135deg, #111827, #2356d8, #f59f00);
    position: relative;
}

.featured-visual::after {
    content: "راهنمای انتخاب کتاب";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 950;
    text-align: center;
    line-height: 1.6;
}

.featured-body {
    padding: 28px;
}

.tag {
    display: inline-flex;
    background: #fff4e6;
    color: #d9480f;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 12px;
}

.featured-body h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.45;
}

.featured-body p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 2;
}

.read-more {
    display: inline-flex;
    background: #111827;
    color: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 950;
}

/* =========================
   Article Cards
========================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.article-card {
    overflow: hidden;
    transition: .25s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.article-cover {
    height: 195px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    text-align: center;
    line-height: 1.5;
    padding: 22px;
    position: relative;
}

.article-cover::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
}

.article-body {
    padding: 18px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.article-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.7;
}

.article-body p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    font-weight: 950;
    font-size: 13px;
}

/* =========================
   Blog Sidebar
========================= */

.blog-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 150px;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-card h3 {
    margin: 0 0 14px;
}

.side-list {
    display: grid;
    gap: 10px;
}

.side-link {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
}

.side-thumb {
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.side-link strong {
    font-size: 13px;
    line-height: 1.7;
}

.side-link span {
    color: var(--muted);
    font-size: 11px;
}

/* =========================
   Sidebar Newsletter
========================= */

.blog-sidebar .newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-radius: 24px;
    padding: 20px;
}

.blog-sidebar .newsletter-box p {
    color: rgba(255, 255, 255, .72);
    line-height: 2;
}

.blog-sidebar .newsletter-box input {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 15px;
    padding: 0 12px;
    outline: none;
}

.blog-sidebar .newsletter-box button {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 15px;
    background: var(--accent);
    font-weight: 950;
    margin-top: 10px;
    cursor: pointer;
}

/* =========================
   Pagination
========================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    border: 1px solid rgba(30, 30, 30, .1);
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
}

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

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .blog-hero .hero-card,
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-hero .hero-card::after {
        font-size: 90px;
        left: 18px;
        bottom: -10px;
    }

    .featured-visual {
        min-height: 250px;
    }
}

@media (max-width: 560px) {
    .breadcrumb-section {
        padding: 18px 0 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .blog-hero {
        padding: 10px 0 24px;
    }

    .blog-hero .hero-card,
    .main-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .blog-hero .hero-card {
        gap: 18px;
    }

    .blog-hero .hero-card::after {
        font-size: 64px;
        left: 14px;
        bottom: -6px;
    }

    .blog-hero .hero-content h1 {
        font-size: 32px;
    }

    .blog-hero .hero-content p {
        font-size: 14px;
    }

    .blog-hero .hero-search {
        padding: 16px;
        border-radius: 22px;
    }

    .featured-body {
        padding: 20px;
    }

    .featured-body h2 {
        font-size: 24px;
    }

    .featured-visual {
        min-height: 220px;
    }

    .featured-visual::after {
        inset: 18px;
        font-size: 22px;
    }

    .article-cover {
        height: 170px;
        font-size: 21px;
    }

    .article-body h3 {
        font-size: 16px;
    }

    .side-link {
        grid-template-columns: 48px 1fr;
    }

    .side-thumb {
        height: 48px;
        border-radius: 14px;
    }

    .sidebar-card {
        padding: 18px;
        border-radius: 24px;
    }
}
