/* ============================================
   UZMIX — Blog Page CSS (Daryo.uz uslubida)
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #0f1729 0%, #1a2332 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(27, 75, 245, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(27, 75, 245, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-left: 80px;
    padding-right: 80px;
}

.blog-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.6rem 0;
    padding: 0;
    background: transparent;
    border: none;
    list-style: none;
    flex-wrap: wrap;
}

.blog-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.blog-hero .breadcrumb a:hover { color: #60a5fa; }

.blog-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.blog-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-hero__desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

/* ============================================
   LAYOUT — Main + Sidebar
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.blog-main {
    min-width: 0;
}

/* ============================================
   FEATURED BLOK — katta post + 3 kichik
   ============================================ */
.blog-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.blog-featured {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.blog-featured:hover {
    border-color: var(--blue);
    box-shadow: 0 12px 32px rgba(27, 75, 245, 0.1);
    transform: translateY(-2px);
}

/* Featured rasm */
.blog-featured__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0.75rem 0.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 0.75rem;
}

.blog-featured__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.blog-featured__img-wrap:hover .blog-featured__img {
    transform: scale(1.03);
}

.blog-featured__img-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 8px;
}

.blog-featured__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #0056b3;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    z-index: 2;
}

/* Featured matn */
.blog-featured__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.blog-featured__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-featured__title a:hover { color: #0056b3; }

.blog-featured__excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured__meta {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ============================================
   3 KICHIK POST
   ============================================ */
.blog-top__side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-mini {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-mini:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(27, 75, 245, 0.1);
    transform: translateY(-2px);
}

/* Mini rasm — fiksirlangan */
.blog-mini__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 0.35rem;
    flex-shrink: 0;
}

.blog-mini__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.blog-mini__img-wrap:hover .blog-mini__img {
    transform: scale(1.05);
}

.blog-mini__img-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 6px;
}

.blog-mini__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.blog-mini__title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-mini__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-mini__title a:hover { color: #0056b3; }

.blog-mini__meta {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================
   GRID — 4 ustunli kichik kartochkalar
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--blue);
    box-shadow: 0 12px 32px rgba(27, 75, 245, 0.1);
    transform: translateY(-3px);
}

.blog-card__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.75rem;
    width: 100%;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.blog-card__img-wrap:hover .blog-card__img {
    transform: scale(1.04);
}

.blog-card__img-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 8px;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.15rem 1.15rem;
    gap: 0.4rem;
}

.blog-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__title a:hover { color: #0056b3; }

.blog-card__meta {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

/* ============================================
   SIDEBAR — So'nggi yangiliklar
   ============================================ */
.blog-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    height: fit-content;
}

.blog-sidebar__section {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.blog-sidebar__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #0056b3;
}

.blog-sidebar__list {
    display: flex;
    flex-direction: column;
}

.blog-side-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-side-item__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-side-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-side-item__title a:hover { color: #0056b3; }

.blog-side-item__meta {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 2rem 0 1rem;
}

.pagination__btn,
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination__btn:hover:not(.is-disabled),
.pagination__page:hover {
    border-color: #0056b3;
    color: #0056b3;
}

.pagination__btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination__page.is-active {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
    cursor: default;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 420px;
    margin: 0 auto;
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3;
    font-size: 2rem;
}

.empty-state__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.empty-state__text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE — Planshet (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
    }

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

/* ============================================
   RESPONSIVE — Mobil (768px)
   ============================================ */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2.5rem 0 2rem;
    }

    .blog-hero__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-hero__title { font-size: 1.5rem; }

    .blog-top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-featured__title { font-size: 1.15rem; }

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

    .blog-mini {
        grid-template-columns: 90px 1fr;
        padding: 0.6rem;
    }

    .blog-mini__img-wrap {
        width: 90px;
        height: 90px;
    }
}

/* ============================================
   RESPONSIVE — Kichik telefon (480px)
   ============================================ */
@media (max-width: 480px) {
    .blog-hero { padding: 2rem 0 1.75rem; }
    .blog-hero__title { font-size: 1.3rem; }

    .blog-mini {
        grid-template-columns: 80px 1fr;
        gap: 0.6rem;
        padding: 0.5rem;
    }

    .blog-mini__img-wrap {
        width: 80px;
        height: 80px;
    }

    .blog-mini__title {
        font-size: 0.82rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar__section {
        padding: 1rem;
    }

    .blog-featured__body {
        padding: 0.75rem 1rem 1rem;
    }

    .blog-featured__img-wrap {
        margin: 0.5rem 0.5rem 0;
    }

    .blog-card__body {
        padding: 0.75rem 0.9rem 0.9rem;
    }
}
