/* /assets/css/site.css — قالب روشن، مدرن، ریسپانسیو با فونت Vazir-FD */

/* FONT */
@font-face {
    font-family: "VazirFD";
    src: url("/fonts/Vazir-FD.woff2") format("woff2"),
         url("/fonts/Vazir-FD.woff") format("woff"),
         url("/fonts/Vazir-FD.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "VazirFD", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #0f172a;
    direction: rtl;
    line-height: 1.85;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #0ea5e9;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 18px;
}

/* HEADER */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15,23,42,.06);
    position: sticky;
    top: 0;
    z-index: 40;
}

/* TOPBAR */

.topbar {
    background: #e0f2fe;
    border-bottom: 1px solid rgba(148,163,184,.3);
    font-size: 13px;
    color: #1d4ed8;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #eff6ff;
    font-size: 12px;
}

/* HEADER MAIN */

.header-main {
    padding: 8px 0 10px;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* NAV TOGGLE (HAMBURGER) */

.nav-toggle-input {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.6);
    background: #ffffff;
    cursor: pointer;
}

.nav-toggle-btn span {
    height: 2px;
    width: 20px;
    border-radius: 999px;
    background: #1e293b;
    display: block;
}

/* LOGO */

.brand-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* NAV BAR */

.header-nav {
    border-top: 1px solid rgba(148,163,184,.2);
    border-bottom: 1px solid rgba(148,163,184,.2);
    background: #eff6ff;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,.5);
    white-space: nowrap;
    transition: .2s;
}

.nav-item-home {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    font-weight: 600;
}

.nav-item:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

/* NAV MOBILE */

@media (max-width: 900px) {
    .header-main-inner {
        justify-content: space-between;
    }

    .nav-toggle-btn {
        display: flex;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .nav-menu {
        position: absolute;
        right: 0;
        left: 0;
        top: 100%;
        margin-top: 4px;
        background: #eff6ff;
        padding: 8px 0 10px;
        border-radius: 0 0 14px 14px;
        border: 1px solid rgba(148,163,184,.3);
        border-top: none;
        flex-direction: column;
        display: none;
        z-index: 30;
    }

    .nav-toggle-input:checked ~ .nav-menu {
        display: flex;
    }
}

/* MAIN LAYOUT */

.site-main {
    padding: 22px 0 32px;
}

.layout-wrapper {
    padding-top: 4px;
}

/* HOME */

.home-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* BLOCKS */

.block {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    margin-bottom: 18px;
}

.block-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d4ed8;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid #bfdbfe;
}

/* ADS */

.block-ads {
    font-size: 0;
}

/* پیشنهاد سردبیر (۳ پست کنار هم) */

.block-top-editor .block-title {
    margin-bottom: 16px;
}

.top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

@media (max-width: 960px) {
    .top-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 640px) {
    .top-grid {
        grid-template-columns: 1fr;
    }
}

.top-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}

.top-card:hover {
    box-shadow: 0 6px 18px rgba(15,23,42,.09);
    transform: translateY(-2px);
}

.top-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.top-thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.top-card:hover .top-thumb img {
    transform: scale(1.03);
}

.top-card .thumb-placeholder {
    height: 210px;
    background: linear-gradient(135deg,#e5e7eb,#cbd5f5);
}

.top-cat {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 13px;
    background: #3b82f6;
    color: #f9fafb;
}

.top-title {
    font-size: 17px;
    font-weight: 700;
    margin: 10px 12px 6px;
}

.top-title a {
    color: #0f172a;
}

.top-excerpt {
    font-size: 14px;
    color: #475569;
    margin: 0 12px 6px;
}

.top-card .card-meta {
    margin: 0 12px 12px;
    font-size: 13px;
    color: #94a3b8;
}

/* مکان‌های گردشگری (۱ ردیف ۴ تایی) */

.block-places .block-title {
    margin-bottom: 14px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .places-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}
@media (max-width: 800px) {
    .places-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 540px) {
    .places-grid {
        grid-template-columns: 1fr;
    }
}

.place-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.3);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.place-card:hover {
    box-shadow: 0 4px 14px rgba(15,23,42,.08);
    transform: translateY(-1px);
}

.place-thumb img,
.place-card .thumb-placeholder {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.place-card .thumb-placeholder {
    background: linear-gradient(135deg,#e5e7eb,#cbd5f5);
}

.place-title {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 10px 12px;
    color: #0f172a;
}

/* اخبار (۳ ردیف ۴ تایی = ۱۲ پست) */

.block-news-main .block-title {
    margin-bottom: 14px;
}

.news-grid-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

@media (max-width: 1200px) {
    .news-grid-main {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}
@media (max-width: 900px) {
    .news-grid-main {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 600px) {
    .news-grid-main {
        grid-template-columns: 1fr;
    }
}

.news-card-main {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}

.news-card-main:hover {
    box-shadow: 0 4px 16px rgba(15,23,42,.08);
    transform: translateY(-2px);
}

.news-thumb-main img,
.news-card-main .thumb-placeholder {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.news-card-main .thumb-placeholder {
    background: linear-gradient(135deg,#e5e7eb,#cbd5f5);
}

.news-body-main {
    padding: 9px 11px 12px;
}

.news-title-main {
    font-size: 15px;
    font-weight: 600;
    margin: 2px 0 6px;
}

.news-title-main a {
    color: #0f172a;
}

.news-meta-main {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-excerpt-main {
    font-size: 13px;
    color: #475569;
}

/* PAGINATION (اگر نیاز شد) */

.pagination {
    margin-top: 18px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.page-link.active,
.page-link:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* FOOTER */

.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(148,163,184,.3);
    margin-top: 20px;
}

.footer-inner {
    padding: 18px 18px 12px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 22px;
}

@media (max-width: 960px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    color: #64748b;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    padding: 4px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(148,163,184,.3);
    text-align: center;
    padding: 10px 0 6px;
    font-size: 13px;
    color: #94a3b8;
}

/* SINGLE PAGE (اختیاری – برای هماهنگی کلی) */

.block-single {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px 24px;
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
}

.single-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f172a;
}

.single-thumb img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin: 10px 0 14px;
}

.single-body {
    font-size: 15px;
    color: #111827;
    line-height: 1.9;
}

.single-body p {
    margin-bottom: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-item a {
    display: block;
    background: #eff6ff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #bfdbfe;
}
