﻿/*
Theme Name: نگاه تازه
Theme URI:
Author: حسین فکوری
Author URI: https://hfakoori.ir
Description: قالب خبری فارسی، مدرن و راست‌چین نگاه تازه؛ بدون استفاده از افزونه یا صفحه‌ساز.
Version: 1.1.0
Requires at least: 5.3
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, rtl-language-support, responsive-layout, featured-images, custom-logo, custom-menu, threaded-comments, translation-ready, theme-options
Text Domain: negah-taze
*/

.brand__logo {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    object-fit: contain;
    border-radius: 14px;
}

.brand--footer .brand__logo {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
}

.mobile-nav > li,
.mobile-nav__list > li {
    list-style: none;
}

.mobile-nav,
.mobile-nav__list {
    padding: 0;
    margin: 0;
}

.home-sections {
    display: flex;
    flex-direction: column;
    gap: 53px;
    padding-top: 58px;
    padding-bottom: 58px;
}

.home-section-placeholder {
    padding: 28px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface-raised);
    color: var(--color-text-soft);
    text-align: center;
}

.negah-taze-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 22px;
}

.negah-taze-pagination .page-numbers {
    display: inline-grid;
    min-width: 37px;
    height: 37px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface-raised);
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 900;
}

.negah-taze-pagination .page-numbers.current {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.negah-taze-pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Responsive header tools and long site-title protection. */
.mobile-drawer__tools {
    display: none;
}

.mobile-drawer__tool {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 800;
    text-align: start;
    transition: border-color var(--transition), background-color var(--transition), color var(--transition), transform var(--transition);
}

.mobile-drawer__tool:hover,
.mobile-drawer__tool:focus-visible {
    border-color: var(--color-primary);
    background: var(--color-status-soft);
    color: var(--color-status);
    transform: translateY(-2px);
}

.mobile-drawer__tool-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-size: 14px;
}

.mobile-drawer__tool > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .mobile-drawer__brand,
    .mobile-drawer__brand > div {
        min-width: 0;
    }

    .mobile-drawer__brand strong {
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .mobile-drawer__brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        grid-template-areas: "brand brand menu";
        gap: 10px;
    }

    .header-actions {
        display: none;
    }

    .brand {
        grid-area: brand;
        justify-self: center;
        width: 100%;
        max-width: min(100%, 430px);
        margin: 0;
    }

    .brand__copy {
        min-width: 0;
        overflow: hidden;
    }

    .brand__copy strong {
        display: -webkit-box;
        overflow: hidden;
        max-width: 100%;
        line-height: 1.3;
        overflow-wrap: anywhere;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .brand__copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-drawer__tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 0 20px;
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 640px) {
    .header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand menu";
        gap: 8px;
    }

    .brand {
        justify-self: start;
        max-width: 100%;
    }

    .brand__mark,
    .brand__logo {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        border-radius: 10px;
    }

    .brand__copy strong {
        font-size: clamp(14px, 4.7vw, 18px);
        line-height: 1.25;
    }

    .mobile-drawer__tools {
        gap: 7px;
    }

    .mobile-drawer__tool {
        min-height: 44px;
        padding-inline: 8px;
        font-size: 10px;
    }
}

