/* style.css */
/*
Theme Name: FarsiWeb Tech
Theme URI: https://farsiweb.ir/
Author: VAXI.IR
Author URI: https://vaxi.ir/
Description: قالب سبک تکنولوژی برای سایت فارسی وب
Version: 1.0
License: VAXI
Text Domain: farsiweb-tech
*/

@font-face {
    font-family: 'VazirFD';
    src: url('fonts/Vazir-Light-FD-WOL.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VazirFD';
    src: url('fonts/Vazir-Bold-FD-WOL.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'VazirFD', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5faf7;
    color: #222;
    line-height: 1.7;
}

a {
    color: #00541A;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e3f0e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

/* branding + logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    color: #028a3a;
}

.site-title a {
    color: #028a3a;
}

.site-description {
    font-size: 12px;
    color: #6c7a72;
}

/* Navigation */
.main-navigation {
    font-size: 14px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.main-navigation a {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 500;
    color: #1f2a24;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: #00541A12;
    color: #0a7c3a;
}

/* Hero */
.hero {
    padding: 24px 0 8px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 20px;
}

.hero-main,
.hero-side {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.hero-main .post-thumbnail {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.hero-main .entry-title {
    font-size: 20px;
    margin: 0 0 6px;
}

.hero-main .entry-meta {
    font-size: 12px;
    color: #7a8982;
    margin-bottom: 8px;
}

.hero-main .entry-excerpt {
    font-size: 13px;
    color: #4a5851;
}

/* Hero side list */
.hero-side-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #028a3a;
}

.hero-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-side-item {
    padding: 8px 0;
    border-bottom: 1px solid #ecf3ef;
}

.hero-side-item:last-child {
    border-bottom: none;
}

.hero-side-item a {
    font-size: 13px;
    font-weight: 800;
}

/* Sections */
.section {
    margin: 18px 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #028a3a;
}

.section-title-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #64d693;
    color: #028a3a;
    background: #e2fbe9;
    font-weight: 700;
}

.section-link {
    font-size: 12px;
    color: #5b6b63;
}

/* Cards common */
.post-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.post-card-thumb {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}

.post-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.post-card-meta {
    font-size: 11px;
    color: #8a9890;
}

/* Guides section: grid */
.section-guides .section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

/* News section: list - دو ستونه */
.section-news .section-list {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.section-news-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #ecf3ef;
    background: #f9fdfb;
}

.section-news-item:last-child {
    border-bottom: none;
}

.section-news-thumb {
    flex: 0 0 90px;
    border-radius: 12px;
    overflow: hidden;
}

.section-news-content {
    flex: 1;
}

.section-news-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
}

/* Price section: rows */
.section-price .section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.price-card {
    border-radius: 16px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ffffff, #e7faef);
    border: 1px solid #c7efd5;
}

/* Trends section: horizontal scroll */
.section-trends .trends-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.section-trends .post-card {
    min-width: 220px;
    scroll-snap-align: start;
}

/* Crypto section: compact cards */
.section-crypto .section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* Reviews section: split layout */
.section-reviews .section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 14px;
}

.section-reviews .post-card.large {
    flex-direction: column;
}

.section-reviews .post-card.small-list {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
}

.section-reviews .small-list-item {
    padding: 6px 0;
    border-bottom: 1px solid #ecf3ef;
    font-size: 13px;
}

.section-reviews .small-list-item:last-child {
    border-bottom: none;
}

/* Apps section: tiles */
.section-apps .section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.app-card {
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 14px;
    background: #00541A12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* اپلیکیشن‌ها با تصویر */
.app-icon.app-thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
}

.app-icon.app-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single post */
.single .site-main {
    padding: 24px 0;
}

/* لی‌اوت سینگل + سایدبار */
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
    gap: 20px;
    margin: 24px 0;
}

.single-main .single-article {
    margin-bottom: 20px;
}

.single-article {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
}

.single-article .post-thumbnail {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.single-article .entry-title {
    font-size: 22px;
    margin: 0 0 6px;
}

.single-article .entry-meta {
    font-size: 12px;
    color: #7a8982;
    margin-bottom: 14px;
}

.single-article .entry-content {
    font-size: 15px;
}

.single-article .entry-content h2,
.single-article .entry-content h3 {
    margin-top: 18px;
}

/* سایدبار سینگل */
.single-sidebar {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
}

.single-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #028a3a;
}

.single-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.single-sidebar-list li {
    padding: 6px 0;
    border-bottom: 1px solid #ecf3ef;
}

.single-sidebar-list li:last-child {
    border-bottom: none;
}

/* Related posts */
.related-posts {
    margin-top: 20px;
}

.related-posts-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* Footer */
.site-footer {
    margin-top: 24px;
    padding: 18px 0 24px;
    background: #f0f6f2;
    border-top: 1px solid #ddeee3;
    font-size: 12px;
    color: #5b6b63;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-reviews .section-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-header-inner {
 /*       flex-direction: column;        */
        align-items: flex-start;
    }

    .main-navigation ul {
        flex-wrap: wrap;
    }

    .single-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* برای اخبار دو ستونه در موبایل تک‌ستونه شود */
@media (max-width: 700px) {
    .section-news .section-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .section-guides .section-grid,
    .section-price .section-grid,
    .section-crypto .section-grid,
    .section-apps .section-grid,
    .related-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* === style.css – استایل بخش دیدگاه‌ها === */

.comments-area {
    margin-top: 24px;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.02);
}

.comments-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #00541A;
}

.comment-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.comment-list .comment {
    border-bottom: 1px solid #ecf3ef;
    padding: 10px 0;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 10px;
}

.comment-avatar {
    flex: 0 0 40px;
}

.comment-avatar img {
    border-radius: 999px;
}

.comment-content {
    flex: 1;
    font-size: 14px;
}

.comment-author {
    font-weight: 700;
    color: #00541A;
}

.comment-meta {
    font-size: 11px;
    color: #8a9890;
    margin-bottom: 4px;
}

.comment-reply-link {
    font-size: 11px;
    color: #00541A;
}

/* فرم دیدگاه */
.comment-respond {
    margin-top: 16px;
}

.comment-reply-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #00541A;
}

.comment-form p {
    margin: 0 0 10px;
    font-size: 13px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d7e6dd;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    background: #f9fdfb;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #00541A;
    color: #ffffff;
}

.form-submit input[type="submit"]:hover {
    opacity: 0.9;
}


/* اضافه به style.css برای باکس نویسنده */

.author-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.02);
}

.author-box-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 999px;
}

.author-meta {
    flex: 1;
    font-size: 14px;
}

.author-name {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #00541A;
}

.author-bio {
    font-size: 13px;
    color: #4a5851;
    margin-bottom: 6px;
}

.author-extra a {
    font-size: 12px;
    color: #00541A;
}

@media (max-width: 600px) {
    .author-box-inner {
        flex-direction: row;
    }
}

/* === style.css – منوی همبرگری موبایل === */

/* دکمه همبرگری */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    margin-inline-start: auto;
    color: #00541A;
}

/* سه خط منو */
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #00541A;
    margin: 3px 0;
    border-radius: 999px;
}
/* حالت موبایل برای هدر و منو */
@media (max-width: 900px) {

    .site-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;  /* دو سر ردیف */
     /*      flex-direction: row-reverse;   لوگو راست، همبرگری چپ */
        flex-wrap: wrap;
        gap: 8px;
    }

    .site-branding {
        flex: 0 0 auto;
        order: 1;                        /* راست */
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        order: 2;                        /* چپ */
    }

    .main-navigation {
        order: 3;
        width: 100%;
        display: none;                   /* پیش‌فرض مخفی */
        margin-top: 8px;
    }

    .site-header.menu-open .main-navigation {
        display: block;                  /* وقتی منو باز شد */
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        padding: 8px 10px;
    }
}

/* style.css – دکمه لود مور */
.load-more-wrapper {
    margin-top: 16px;
    text-align: center;
}

.load-more-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #00541A;
    color: #ffffff;
}

.load-more-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

/* مخفی کردن مقالات مرتبط در موبایل، نمایش در دسکتاپ */
@media (max-width: 768px) {
    .related-posts {
        display: block !important;
    }
}

}
@media (min-width: 769px) {
    .hot-scroll-section {
        display: none;
    }
}

/* Hot posts above single */
.hot-top {
    margin-bottom: 16px;
}

.hot-top-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #028a3a;
}

.hot-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* دسکتاپ 3 ستون */
    gap: 10px;
}

/* موبایل: 2 ستون + مخفی کردن آیتم سوم */
@media (max-width: 768px) {
    .hot-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hot-top-grid > :nth-child(3) {
        display: none;
    }
}

/* فقط کارت‌های hot-top زرد روشن */
.hot-top .post-card{
    background: #fff8d6;
    border: 1px solid #f3e6a6;
    box-shadow: 0 6px 15px rgba(0,0,0,0.03);
}

.hot-top .post-card-title a{
    color: #4a3b00; /* متن تیره‌تر روی زرد */
}

.hot-top .post-card-meta{
    color: #6b6b55;
}


