﻿/* ساختار کلی */
.blog-page {
    direction: rtl;
    color: #0f172a;
    font-family:Peyda;
    padding: 32px 16px 64px;
    min-height: 100vh;
}

.blog-layout {
    max-width: 1250px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 24px;
}

/* Hero */
.blog-hero {
    max-width: 1250px;
    margin: 0 auto 28px;
    padding: 28px 24px 32px;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.88);
    color: #e5e7eb;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.blog-hero__content {
    position: relative;
    z-index: 2;
}

.blog-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.18);
}

.blog-hero__title {
    font-size: 28px;
    line-height: 1.4;
    margin: 14px 0 6px;
}

    .blog-hero__title span {
        color: #facc15;
    }

.blog-hero__subtitle {
    font-size: 13px;
    color: #cbd5f5;
    max-width: 430px;
}

.blog-hero__search {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    background: rgba(15,23,42,0.9);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
}

    .blog-hero__search input {
        flex: 1;
        border: none;
        background: transparent;
        color: #e5e7eb;
        font-size: 13px;
        padding: 8px 12px;
        outline: none;
    }

        .blog-hero__search input::placeholder {
            color: #64748b;
        }

    .blog-hero__search button {
        border: none;
        border-radius: 999px;
        padding: 8px 16px;
        font-size: 13px;
        background: linear-gradient(135deg,#f97316,#facc15);
        color: #111827;
        font-weight: 600;
        cursor: pointer;
        transition: transform .15s ease, box-shadow .15s ease;
    }

        .blog-hero__search button:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(15,23,42,0.6);
        }

.blog-hero__tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .blog-hero__tags button {
        border-radius: 999px;
        font-size: 11px;
        padding: 4px 10px;
        border: none;
        background: rgba(148,163,184,0.18);
        color: #e5e7eb;
        cursor: pointer;
        transition: background .15s ease, transform .15s ease;
    }

        .blog-hero__tags button:hover {
            background: rgba(248,250,252,0.2);
            transform: translateY(-1px);
        }

/* Hero visual */
.blog-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero__orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(148,163,184,0.45);
    animation: spinOrbit 26s linear infinite;
}

.blog-hero__orbit--1 {
    width: 260px;
    height: 260px;
    opacity: .55;
}

.blog-hero__orbit--2 {
    width: 350px;
    height: 350px;
    opacity: .32;
    animation-duration: 40s;
}

.blog-hero__card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(248,250,252,0.15), transparent 55%), rgba(15,23,42,0.9);
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
    max-width: 320px;
    transform-origin: center;
    animation: floatCard 6s ease-in-out infinite;
}

.blog-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(248,250,252,0.12);
    border: 1px solid rgba(244,244,245,0.4);
    margin-bottom: 8px;
}

.blog-hero__card h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.blog-hero__card p {
    font-size: 12px;
    color: #cbd5f5;
}

.blog-hero__meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

/* سکشن‌ها */
.blog-section {
    background: rgba(248,250,252,0.96);
    border-radius: 20px;
    padding: 18px 18px 20px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.16);
    margin-bottom: 18px;
}

.blog-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

    .blog-section__head h2 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .blog-section__head p {
        font-size: 12px;
        color: #6b7280;
    }

.blog-section__nav {
    display: flex;
    gap: 8px;
}

/* کروسل برترین مقالات */
.blog-carousel {
    position: relative;
}

.blog-carousel__viewport {
    overflow: hidden;
}

.blog-carousel__track {
    display: flex;
    gap: 14px;
    transition: transform .4s cubic-bezier(.33,.63,.26,.99);
}

.blog-carousel__nav {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    background: #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}

    .blog-carousel__nav:hover {
        background: #cbd5f5;
        transform: translateY(-1px);
    }

/* کارت مقاله */
.blog-card {
    min-width: 260px;
    max-width: 280px;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 35px rgba(15,23,42,0.7);
    transform-origin: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .blog-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 22px 50px rgba(15,23,42,0.95);
    }

.blog-card__media {
    position: relative;
    height: 150px;
    overflow: hidden;
}

    .blog-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.05);
        transition: transform .25s ease;
    }

.blog-card:hover .blog-card__media img {
    transform: scale(1.13);
}

.blog-card__label {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(15,23,42,0.8);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
}

.blog-card__body {
    padding: 12px 12px 13px;
}

    .blog-card__body h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .blog-card__body p {
        font-size: 11px;
        color: #cbd5f5;
    }

.blog-card__meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
}

/* آموزش و نکات سفر */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}

.blog-tip {
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(251,191,36,0.15), rgba(248,250,252,0.98));
    border: 1px solid rgba(226,232,240,0.9);
    padding: 12px 12px 13px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .blog-tip:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 22px rgba(148,163,184,0.45);
    }

.blog-tip__icon {
    font-size: 18px;
    margin-bottom: 6px;
}

.blog-tip h3 {
    font-size: 13px;
    margin-bottom: 3px;
}

.blog-tip p {
    font-size: 11px;
    color: #4b5563;
}

.blog-tip__tag {
    font-size: 10px;
    color: #b45309;
    margin-top: 6px;
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(248,250,252,0.9);
}

/* پوسترها */
.blog-posters {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.blog-posters__track {
    display: flex;
    transition: transform .5s cubic-bezier(.33,.63,.26,.99);
}

.blog-poster {
    min-width: 100%;
    position: relative;
    height: 210px;
    overflow: hidden;
}

    .blog-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.1);
        transform: scale(1.03);
        transition: transform .4s ease;
    }

.blog-poster__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(15,23,42,0.85),rgba(15,23,42,0.1));
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

    .blog-poster__overlay h3 {
        font-size: 17px;
    }

    .blog-poster__overlay p {
        font-size: 12px;
        margin: 6px 0 10px;
        max-width: 340px;
    }

    .blog-poster__overlay button {
        align-self: flex-start;
        border-radius: 999px;
        border: none;
        font-size: 12px;
        padding: 6px 14px;
        background: linear-gradient(135deg,#f97316,#facc15);
        color: #111827;
        cursor: pointer;
    }

.blog-posters__nav {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,0.75);
    color: #e5e7eb;
    cursor: pointer;
    margin-right: 4px;
}

/* سایدبار */
.blog-aside {
    position: sticky;
    top: 82px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-aside__box {
    background: rgba(248,250,252,0.97);
    border-radius: 18px;
    padding: 13px 14px 15px;
    box-shadow: 0 10px 26px rgba(15,23,42,0.14);
}

    .blog-aside__box h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .blog-aside__box p {
        font-size: 11px;
        color: #4b5563;
    }

.blog-aside__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .blog-aside__links li + li {
        margin-top: 6px;
    }

    .blog-aside__links a {
        font-size: 11px;
        color: #0f766e;
        text-decoration: none;
    }

        .blog-aside__links a:hover {
            text-decoration: underline;
        }

.blog-aside__box--newsletter {
    background: radial-gradient(circle at top,#f97316,#facc15);
    color: #111827;
}

    .blog-aside__box--newsletter p {
        color: #1f2937;
    }

.blog-aside__form {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

    .blog-aside__form input {
        flex: 1;
        border-radius: 999px;
        border: none;
        padding: 6px 10px;
        font-size: 11px;
    }

    .blog-aside__form button {
        border-radius: 999px;
        border: none;
        padding: 6px 12px;
        font-size: 11px;
        background: #111827;
        color: #f9fafb;
    }

/* اسکرول ریویل */
.js-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

    .js-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* انیمیشن‌ها */
@keyframes floatCard {
    0%,100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .blog-aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 18px 12px 36px;
    }

    .blog-hero {
        grid-template-columns: 1fr;
        padding: 18px 16px 22px;
    }

    .blog-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .blog-card {
        min-width: 220px;
    }
}
