/*
Theme Name: Personalblogily
Theme URI: https://superbthemes.com/personalblogily/personalblogily-info/
Author: ThemeEverest
Author URI: https://superbthemes.com/
Description: Personalblogily customized for zahraajorlou.ir.
Version: 7.3
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: personalblogily
*/

/* ==================================================
   Design tokens
   ================================================== */

:root {
    --font-primary: "Vazirmatn", Tahoma, Arial, sans-serif;

    --font-size-xs: 0.78rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.4rem;
    --font-size-xl: 2rem;
    --font-size-2xl: 3rem;

    --line-height-tight: 1.35;
    --line-height-heading: 1.55;
    --line-height-text: 2.05;

    --text-main: #292824;
    --text-muted: #746e66;

    --surface: #ffffff;
    --surface-soft: #f7f3ed;
    --surface-quote: #eee6dc;

    --border: #e2ddd7;
    --border-strong: #d8d1c8;
    --accent: #9a8064;

    --footer-bg: #272622;
    --footer-text: #ddd6ce;
    --footer-muted: #b8b0a7;
}


/* ==================================================
   Reset and global typography
   ================================================== */

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

html {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;

    color: var(--text-main);
    background: var(--surface);

    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-text);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
optgroup,
select,
textarea {
    font: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

figure {
    margin: 1.8em 0;
}

p,
blockquote,
address {
    margin: 0 0 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: var(--line-height-heading);
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

table {
    width: 100%;
    margin: 0 0 1.5em;
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td {
    padding: 10px;
    text-align: right;
}

textarea {
    width: 100%;
}

[hidden],
template {
    display: none;
}


/* ==================================================
   Shared layout system
   ================================================== */

.zahra-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px;
}

.zahra-content-shell {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}

.zahra-reading-column {
    width: 100%;
    max-width: 780px;
    margin-right: 0;
    margin-left: auto;
}

@media (max-width: 900px) {
    .zahra-container {
        padding-inline: 24px;
    }
}

@media (max-width: 600px) {
    .zahra-container {
        padding-inline: 16px;
    }
}


/* ==================================================
   Accessibility and WordPress utilities
   ================================================== */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;

    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);

    word-wrap: normal !important;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 5px;
    right: 5px;

    display: block;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;

    color: #21759b;
    background: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);

    clip: auto !important;
    clip-path: none;

    font-size: 0.875rem;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}

#main-content[tabindex="-1"]:focus {
    outline: 0;
}

.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption,
embed,
iframe,
object {
    max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
    text-align: center;
}

.clearfix::after,
.entry-content::after {
    display: table;
    clear: both;
    content: "";
}


/* ==================================================
   Header and navigation
   ================================================== */

.zahra-site-header {
    position: relative;
    z-index: 100;

    direction: rtl;
    background: var(--surface);
    border-bottom: 1px solid var(--border);

    font-family: var(--font-primary);
}

.zahra-header-inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 78px;
}

.zahra-primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.zahra-primary-menu li {
    position: relative;
}

.zahra-primary-menu a {
    display: block;
    padding: 27px 0 23px;

    color: var(--text-main);
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.zahra-primary-menu a:hover,
.zahra-primary-menu a:focus {
    color: var(--accent);
}

.zahra-primary-menu .sub-menu {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: -18px;

    min-width: 190px;
    margin: 0;
    padding: 9px 0;

    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease;
}

.zahra-primary-menu li:hover > .sub-menu,
.zahra-primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zahra-primary-menu .sub-menu a {
    padding: 10px 18px;
}

.zahra-menu-toggle {
    display: none;
}


/* ==================================================
   Global search form
   ================================================== */

.zahra-search-form {
    display: flex;
    align-items: stretch;

    width: 100%;
    margin: 0;
}

.zahra-search-form__field {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 48px;
    margin: 0;
    padding: 0 16px;

    color: var(--text-main);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-left: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    appearance: none;

    font-size: 0.9rem;
    line-height: 1;
}

.zahra-search-form__field:focus {
    border-color: var(--accent);
}

.zahra-search-form__submit {
    flex: 0 0 auto;

    min-width: 100px;
    height: 48px;
    margin: 0;
    padding: 0 20px;

    color: #fff;
    background: var(--text-main);
    border: 1px solid var(--text-main);
    border-radius: 0;
    box-shadow: none;
    appearance: none;

    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1;

    transition:
        background 180ms ease,
        border-color 180ms ease;
}

.zahra-search-form__submit:hover,
.zahra-search-form__submit:focus {
    color: #fff;
    background: #47433e;
    border-color: #47433e;
}


/* ==================================================
   Inline header search
   ================================================== */

.zahra-header-search {
    position: absolute;
    left: 32px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 320px;
    min-width: 320px;
}

.zahra-search-toggle {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;

    color: var(--text-main);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: none;

    font-size: 1.25rem;
    line-height: 1;

    transition:
        opacity 180ms ease,
        color 180ms ease;
}

.zahra-search-toggle:hover,
.zahra-search-toggle:focus {
    color: var(--accent);
    background: transparent;
    outline: none;
}

.zahra-inline-search {
    position: absolute;
    top: 50%;
    left: 0;

    display: flex;
    align-items: center;

    width: 100%;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-50%) scaleX(0.86);
    transform-origin: left center;

    transition:
        opacity 180ms ease,
        transform 220ms ease,
        visibility 180ms ease;
}

.zahra-header-search.is-open .zahra-search-toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.zahra-header-search.is-open .zahra-inline-search {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scaleX(1);
}

.zahra-inline-search .zahra-search-form {
    flex: 1;
    width: auto;
}

.zahra-inline-search .zahra-search-form__field {
    height: 40px;
    padding-inline: 13px;
    font-size: 0.84rem;
}

.zahra-inline-search .zahra-search-form__submit {
    min-width: 76px;
    height: 40px;
    padding-inline: 14px;
    font-size: 0.8rem;
}

.zahra-search-close {
    flex: 0 0 38px;

    width: 38px;
    height: 40px;
    margin: 0;
    padding: 0;

    color: #6f675f;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: none;

    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1;

    transition:
        color 180ms ease,
        background 180ms ease;
}

.zahra-search-close:hover,
.zahra-search-close:focus {
    color: var(--text-main);
    background: var(--surface-soft);
    outline: none;
}


/* ==================================================
   Mobile navigation
   ================================================== */

@media (max-width: 900px) {
    .zahra-header-inner {
        min-height: 68px;
        justify-content: space-between;
    }

    .zahra-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 42px;
        height: 42px;
        padding: 0;

        background: transparent;
        border: 0;
    }

    .zahra-menu-toggle span {
        display: block;

        width: 24px;
        height: 2px;

        background: var(--text-main);

        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    .zahra-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .zahra-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .zahra-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .zahra-primary-nav {
        position: absolute;
        z-index: 30;
        top: 100%;
        right: 0;
        left: 0;

        padding: 12px 24px 22px;

        background: var(--surface);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;

        transition:
            opacity 180ms ease,
            visibility 180ms ease,
            transform 180ms ease;
    }

    .zahra-primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .zahra-primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .zahra-primary-menu > li {
        border-bottom: 1px solid #eee9e3;
    }

    .zahra-primary-menu > li:last-child {
        border-bottom: 0;
    }

    .zahra-primary-menu a {
        padding: 13px 4px;
        font-size: 1rem;
        line-height: 1.8;
    }

    .zahra-primary-menu .sub-menu {
        position: static;

        min-width: 0;
        padding: 0 16px 8px;

        border: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .zahra-header-search {
        position: static;
        width: 230px;
        min-width: 230px;
    }

    .zahra-inline-search .zahra-search-form__submit {
        min-width: 68px;
        padding-inline: 10px;
    }
}

@media (max-width: 600px) {
    .zahra-header-search {
        position: static;
        width: auto;
        min-width: 38px;
    }

    .zahra-inline-search {
        top: 50%;
        right: 16px;
        left: 16px;
        z-index: 40;

        width: auto;
        transform-origin: center;
    }

    .zahra-inline-search .zahra-search-form {
        display: flex;
        flex: 1;
        width: auto;
    }

    .zahra-inline-search .zahra-search-form__field {
        width: auto;
        min-width: 0;
        margin: 0;
    }

    .zahra-inline-search .zahra-search-form__submit {
        width: auto;
        min-width: 70px;
        margin: 0;
        padding-inline: 10px;
    }
}


/* ==================================================
   Shared internal page hero
   ================================================== */

.zahra-page-hero {
    width: 100%;
    padding: 68px 0 62px;

    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.zahra-page-hero__inner {
    position: relative;

    width: 100%;
    margin-inline: auto;
    padding-right: 30px;
}

.zahra-page-hero__inner::before {
    position: absolute;
    top: 5px;
    right: 0;
    bottom: 5px;

    width: 3px;

    background: var(--accent);
    content: "";
}

.zahra-page-hero__eyebrow {
    display: block;
    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.8;
    text-decoration: none;
}

.zahra-page-hero__title {
    max-width: 900px;
    margin: 0;

    color: var(--text-main);

    font-size: clamp(2.1rem, 3.5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.04em;
}

.zahra-page-hero__description {
    max-width: 720px;
    margin-top: 14px;

    color: #625c55;

    font-size: 0.98rem;
    line-height: 2;
}

.zahra-page-hero__description p {
    margin: 0;
}

.zahra-page-hero__extra {
    width: 100%;
    max-width: 620px;
    margin-top: 26px;
}

@media (max-width: 650px) {
    .zahra-page-hero {
        padding: 46px 0 48px;
    }

    .zahra-page-hero__inner {
        padding-right: 22px;
    }

    .zahra-page-hero__inner::before {
        width: 2px;
    }

    .zahra-page-hero__title {
        font-size: 2rem;
        line-height: 1.6;
        letter-spacing: -0.025em;
    }

    .zahra-page-hero__extra {
        max-width: 100%;
    }
}


/* ==================================================
   Search results page
   ================================================== */

.zahra-search-page,
.zahra-search-page .zahra-page-hero,
.zahra-search-page .search-results {
    width: 100%;
    max-width: none;
    margin: 0;
}

.zahra-search-page {
    background: var(--surface);
}

.zahra-search-page .search-results {
    padding: 72px 0 100px;
}

.search-results__inner,
.search-results__grid,
.search-empty {
    width: 100%;
}

.search-results__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.search-result-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
}

.search-result-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee8e0;
}

.search-result-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.search-result-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    width: 100%;
    padding: 27px 28px 30px;

    text-align: right;
}

.search-result-card__meta {
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.search-result-card__meta a {
    color: var(--accent);
    text-decoration: none;
}

.search-result-card__title {
    margin: 0 0 12px;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.85;
}

.search-result-card__title a {
    color: var(--text-main);
    text-decoration: none;
}

.search-result-card__excerpt {
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 2.05;
}

.search-result-card__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;

    margin-top: auto;
    padding-top: 20px;

    color: var(--text-main);
    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 500;
}

.search-result-card:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 760px;
    justify-self: center;
}

.search-empty {
    padding: 0;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    text-align: right;
}

.search-empty__home {
    color: var(--accent);
}

@media (max-width: 850px) {
    .search-results__grid {
        grid-template-columns: 1fr;
    }

    .search-result-card:only-child {
        grid-column: auto;
        max-width: none;
    }
}

@media (max-width: 650px) {
    .zahra-search-page .search-results {
        padding: 48px 0 68px;
    }

    .search-result-card__content {
        padding: 23px 21px 26px;
    }
}


/* ==================================================
   Closing quote
   ================================================== */

.site-closing-quote {
    padding: 34px 0;

    background: var(--surface-quote);
    border-top: 1px solid #ddd2c6;
}

.site-closing-quote blockquote {
    position: relative;

    width: auto;
    margin: 0 auto;
    padding: 14px 28px;

    background: transparent;
    border: 0;
}

.site-closing-quote blockquote::before {
    position: absolute;
    top: 4px;
    right: 0;
    bottom: 4px;

    width: 3px;

    background: #aaa39a;
    content: "";
}

.site-closing-quote blockquote::after {
    content: none;
}

.site-closing-quote p {
    margin: 0;

    color: var(--text-main);

    font-size: clamp(1.15rem, 1.5vw, 1.55rem);
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-closing-quote cite {
    display: block;
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 0.78rem;
    font-style: normal;
}

.site-closing-quote cite::before {
    content: "— ";
}

@media (max-width: 900px) {
    .site-closing-quote {
        padding: 30px 0;
    }

    .site-closing-quote blockquote {
        padding-right: 22px;
    }

    .site-closing-quote p {
        font-size: 1.08rem;
        line-height: 2;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .site-closing-quote {
        padding: 26px 0;
    }

    .site-closing-quote p {
        font-size: 1rem;
    }

    .site-closing-quote cite {
        font-size: 0.72rem;
    }
}


/* ==================================================
   Site footer
   ================================================== */

.zahra-site-footer {
    padding: 70px 0 28px;

    color: #ece7e1;
    background: var(--footer-bg);
}

.zahra-footer-main {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.45fr)
        minmax(180px, 0.8fr)
        minmax(230px, 1fr);
    gap: 65px;

    padding-bottom: 58px;
}

.zahra-footer-about {
    max-width: 420px;
}

.zahra-footer-name {
    display: inline-block;
    margin-bottom: 14px;

    color: #fff;
    text-decoration: none;

    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.5;
}

.zahra-footer-description {
    max-width: 390px;
    margin: 0;

    color: #d0c9c1;

    font-size: 0.9rem;
    line-height: 2.1;
}

.zahra-footer-navigation {
    min-width: 0;
}

.zahra-footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 22px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.zahra-footer-menu li {
    margin: 0;
    padding: 0;
}

.zahra-footer-menu a,
.zahra-footer-contact a {
    color: var(--footer-text);
    text-decoration: none;

    font-size: 0.85rem;
    line-height: 2;

    transition: color 180ms ease;
}

.zahra-footer-menu a:hover,
.zahra-footer-contact a:hover {
    color: #fff;
}

.zahra-footer-menu .sub-menu {
    display: none;
}

.zahra-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.zahra-footer-column-title {
    display: block;
    margin-bottom: 7px;

    color: #fff;

    font-size: 0.86rem;
    font-weight: 600;
}

.zahra-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding-top: 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.zahra-footer-copyright {
    margin: 0;

    color: var(--footer-muted);

    font-size: 0.76rem;
    line-height: 1.9;
}

.zahra-footer-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--footer-muted);
    text-decoration: none;

    font-size: 0.76rem;

    transition: color 180ms ease;
}

.zahra-footer-top:hover {
    color: #fff;
}

.zahra-footer-top span {
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .zahra-site-footer {
        padding-top: 58px;
    }

    .zahra-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

    .zahra-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .zahra-site-footer {
        padding: 48px 0 24px;
    }

    .zahra-footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 38px;
    }

    .zahra-footer-about {
        grid-column: auto;
    }

    .zahra-footer-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zahra-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

/* Podcast Buttons */
.podcast-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 25px auto;
  direction: rtl;
}

.pod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pod-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  filter: brightness(1.1);
}

.castbox-btn {
  background-color: #f55d3e;
  color: #ffffff !important;
}

.apple-btn {
  background-color: #872ec4;
  color: #ffffff !important;
}

.spotify-btn {
  background-color: #1ed760;
  color: #000000 !important;
}

.pod-icon {
  font-size: 18px;
}

.pod-text {
  flex-grow: 1;
  text-align: center;
}

@media (max-width: 480px) {
  .pod-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
}
</style>
