/*
Theme Name: דעת הקהל
Theme URI: http://localhost:8090
Author: Codex
Description: תבנית עברית RTL נקייה לאתר סקרים, הצבעות ומדדי דעת קהל.
Version: 0.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: public-opinion-theme
*/

:root {
    --pot-bg: #f4f6f4;
    --pot-paper: #ffffff;
    --pot-ink: #151b22;
    --pot-text: #27313c;
    --pot-muted: #667085;
    --pot-border: #d9dee6;
    --pot-border-strong: #bfc7d3;
    --pot-accent: #176b6f;
    --pot-accent-dark: #0f5155;
    --pot-red: #8f3d3d;
    --pot-gold: #b68b2f;
    --pot-green: #2f7d5b;
    --pot-shadow: 0 18px 55px rgba(21, 27, 34, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--pot-text);
    background:
        linear-gradient(180deg, rgba(23, 107, 111, 0.07), transparent 280px),
        var(--pot-bg);
    direction: rtl;
    font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

a {
    color: var(--pot-accent);
}

a:hover,
a:focus {
    color: var(--pot-accent-dark);
}

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

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

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 100000;
    top: 12px;
    right: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #ffffff;
    background: var(--pot-accent);
    border-radius: 6px;
}

.pot-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pot-topline {
    color: #ffffff;
    background: var(--pot-ink);
}

.pot-topline__inner,
.pot-header__inner,
.pot-main,
.pot-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.pot-topline__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 38px;
    font-size: 0.88rem;
}

.pot-topline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(255, 255, 255, 0.76);
}

.pot-topline__meta strong {
    color: #ffffff;
}

.pot-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--pot-border);
    backdrop-filter: blur(14px);
}

.pot-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 78px;
}

.pot-brand {
    display: inline-grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 2px;
    align-items: center;
    color: var(--pot-ink);
    text-decoration: none;
}

.pot-brand__mark {
    width: 34px;
    height: 34px;
    background: url("assets/images/site-icon.png") center / contain no-repeat;
}

.pot-brand__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pot-brand__name {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.pot-brand__tagline {
    color: var(--pot-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.pot-nav {
    min-width: 0;
}

.pot-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pot-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--pot-text);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.pot-nav .current-menu-item > a,
.pot-nav a:hover,
.pot-nav a:focus {
    color: var(--pot-accent-dark);
    background: #eaf3f1;
}

.pot-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    color: #ffffff;
    background: var(--pot-accent);
    border-radius: 6px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.pot-header__action:hover,
.pot-header__action:focus {
    color: #ffffff;
    background: var(--pot-accent-dark);
}

.pot-main {
    flex: 1;
    padding: 24px 0 56px;
}

.pot-page-shell {
    margin: 0 auto;
}

.pot-page-header {
    margin: 0 0 22px;
    padding: 30px;
    background: var(--pot-paper);
    border: 1px solid var(--pot-border);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(21, 27, 34, 0.04);
}

.pot-page-header__label {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--pot-accent);
    font-size: 0.9rem;
    font-weight: 900;
}

.pot-page-title,
.pot-entry-title {
    margin: 0;
    color: var(--pot-ink);
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.pot-content {
    min-width: 0;
}

.pot-content > *:first-child {
    margin-top: 0;
}

.pot-content > *:last-child {
    margin-bottom: 0;
}

.pot-content:not(:has(.pop-site)):not(:has(.pop-submit)):not(:has(.pop-category-index)):not(:has(.pop-all-polls)):not(:has(.pop-poll-card)) {
    max-width: 900px;
    padding: 24px;
    background: var(--pot-paper);
    border: 1px solid var(--pot-border);
    border-radius: 8px;
}

.pot-footer {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.78);
    background: var(--pot-ink);
}

.pot-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(180px, 0.55fr));
    gap: 32px;
    padding: 38px 0;
}

.pot-footer h2,
.pot-footer h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1rem;
}

.pot-footer p {
    margin: 0;
}

.pot-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.pot-footer a:hover,
.pot-footer a:focus {
    color: #ffffff;
}

.pot-footer ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pot-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pot-footer__bottom-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.pot-comments {
    max-width: 900px;
    margin-top: 28px;
    padding: 22px;
    background: var(--pot-paper);
    border: 1px solid var(--pot-border);
    border-radius: 8px;
}

.pot-comments h2,
.pot-comments h3 {
    margin-top: 0;
}

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

.comment-body {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pot-border);
}

.comment-form {
    display: grid;
    gap: 12px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pot-border);
    border-radius: 6px;
}

.comment-form .submit {
    width: fit-content;
    min-height: 42px;
    padding: 9px 16px;
    color: #ffffff;
    background: var(--pot-accent);
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
}

.wp-block-search__button,
.wp-element-button {
    border-radius: 6px;
}

@media (max-width: 980px) {
    .pot-header__inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .pot-nav ul {
        justify-content: flex-start;
    }

    .pot-header__action {
        width: fit-content;
    }

    .pot-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pot-topline__inner,
    .pot-header__inner,
    .pot-main,
    .pot-footer__inner,
    .pot-footer__bottom-inner {
        width: min(100% - 24px, 1180px);
    }

    .pot-topline__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }

    .pot-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .pot-nav a {
        justify-content: center;
        min-height: 38px;
        padding: 7px 8px;
        background: #f6f8f8;
        font-size: 0.9rem;
    }

    .pot-page-header {
        padding: 22px 18px;
    }
}

/* Option 5: energetic Hebrew news-style public site */
:root {
    --pot-bg: #f2f3f5;
    --pot-paper: #ffffff;
    --pot-ink: #0b1220;
    --pot-text: #1f2937;
    --pot-muted: #626b7a;
    --pot-border: #d4d8df;
    --pot-border-strong: #aeb6c2;
    --pot-accent: #8f1d2c;
    --pot-accent-dark: #681421;
    --pot-red: #b42318;
    --pot-gold: #b88922;
    --pot-green: #236b52;
    --pot-navy: #10233f;
    --pot-shadow: 0 12px 30px rgba(11, 18, 32, 0.09);
}

body {
    color: var(--pot-text);
    background: var(--pot-bg);
}

a {
    color: var(--pot-accent);
}

a:hover,
a:focus {
    color: var(--pot-accent-dark);
}

.pot-topline {
    background: var(--pot-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pot-topline__inner {
    min-height: 34px;
    font-size: 0.84rem;
    font-weight: 800;
}

.pot-topline__inner > span {
    color: #ffffff;
}

.pot-topline__meta {
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.pot-header {
    position: sticky;
    background: #ffffff;
    border-bottom: 3px solid var(--pot-ink);
    box-shadow: 0 10px 26px rgba(11, 18, 32, 0.08);
    backdrop-filter: none;
}

.pot-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 86px;
}

.pot-brand {
    position: relative;
    padding-inline-start: 16px;
}

.pot-brand::before {
    content: "";
    position: absolute;
    inset-block: 4px;
    inset-inline-start: 0;
    width: 5px;
    background: var(--pot-accent);
}

.pot-brand__name {
    color: var(--pot-ink);
    font-size: 1.8rem;
    font-weight: 950;
}

.pot-brand__tagline {
    color: var(--pot-muted);
    font-size: 0.82rem;
}

.pot-nav ul {
    gap: 2px;
}

.pot-nav a {
    min-height: 38px;
    padding: 7px 11px;
    color: var(--pot-ink);
    border-radius: 0;
    font-size: 0.93rem;
}

.pot-nav .current-menu-item > a,
.pot-nav a:hover,
.pot-nav a:focus {
    color: #ffffff;
    background: var(--pot-ink);
}

.pot-header__action {
    min-height: 40px;
    color: #ffffff;
    background: var(--pot-accent);
    border-radius: 0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.pot-header__action:hover,
.pot-header__action:focus {
    background: var(--pot-accent-dark);
}

.pot-breaking {
    background: #ffffff;
    border-bottom: 1px solid var(--pot-border);
}

.pot-breaking__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    width: min(1180px, calc(100% - 32px));
    min-height: 46px;
    margin: 0 auto;
    font-size: 0.92rem;
}

.pot-breaking strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    color: #ffffff;
    background: var(--pot-accent);
    font-size: 0.84rem;
    font-weight: 950;
}

.pot-breaking a {
    color: var(--pot-ink);
    font-weight: 850;
    text-decoration: none;
}

.pot-breaking a:hover,
.pot-breaking a:focus {
    color: var(--pot-accent);
}

.pot-main {
    padding-top: 18px;
}

.pot-page-header {
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid var(--pot-border);
    border-top: 5px solid var(--pot-ink);
    border-radius: 0;
    box-shadow: none;
}

.pot-page-header__label {
    color: var(--pot-accent);
}

.pot-page-title,
.pot-entry-title {
    color: var(--pot-ink);
}

.pot-content:not(:has(.pop-site)):not(:has(.pop-submit)):not(:has(.pop-category-index)):not(:has(.pop-all-polls)):not(:has(.pop-poll-card)) {
    background: #ffffff;
    border-top: 4px solid var(--pot-accent);
    border-radius: 0;
}

.pot-footer {
    background: var(--pot-ink);
    border-top: 5px solid var(--pot-accent);
}

.pot-footer__inner {
    padding: 34px 0;
}

.pot-comments {
    border-top: 4px solid var(--pot-accent);
    border-radius: 0;
}

.comment-form .submit {
    background: var(--pot-accent);
    border-radius: 0;
}

@media (max-width: 980px) {
    .pot-header__inner {
        grid-template-columns: 1fr;
    }

    .pot-header__action {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    .pot-breaking__inner {
        width: min(100% - 24px, 1180px);
        padding: 8px 0;
    }

    .pot-nav a {
        border: 1px solid var(--pot-border);
        background: #ffffff;
    }
}

.pot-single-poll {
    display: grid;
    gap: 18px;
}

.pot-poll-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 18px;
    align-items: stretch;
    padding: clamp(22px, 4vw, 40px);
    background: #ffffff;
    border: 1px solid var(--pot-border);
    border-top: 6px solid var(--pot-ink);
    box-shadow: var(--pot-shadow);
}

.pot-poll-hero__content {
    min-width: 0;
}

.pot-poll-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.pot-poll-terms a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--pot-ink);
    background: #f2f3f5;
    border: 1px solid var(--pot-border);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.pot-poll-terms a:hover,
.pot-poll-terms a:focus {
    color: #ffffff;
    background: var(--pot-ink);
    border-color: var(--pot-ink);
}

.pot-poll-lead {
    max-width: 780px;
    margin-top: 16px;
    color: #4d5766;
    font-size: 1.05rem;
    font-weight: 650;
}

.pot-poll-lead p {
    margin: 0 0 10px;
}

.pot-poll-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pot-poll-hero__stats > div {
    min-width: 0;
    padding: 14px;
    background: #f8f9fb;
    border: 1px solid var(--pot-border);
    border-right: 5px solid var(--pot-accent);
}

.pot-poll-hero__stats > div:nth-child(2) {
    border-right-color: var(--pot-navy);
}

.pot-poll-hero__stats > div:nth-child(3) {
    border-right-color: var(--pot-gold);
}

.pot-poll-hero__stats > div:nth-child(4) {
    border-right-color: var(--pot-green);
}

.pot-poll-hero__stats span,
.pot-side-box > span,
.pot-poll-editorial > span {
    display: block;
    margin-bottom: 5px;
    color: var(--pot-muted);
    font-size: 0.78rem;
    font-weight: 950;
}

.pot-poll-hero__stats strong {
    display: block;
    min-width: 0;
    color: var(--pot-ink);
    font-size: clamp(1.12rem, 2.2vw, 1.55rem);
    font-weight: 950;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pot-single-poll__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 18px;
    align-items: start;
}

.pot-single-poll__main,
.pot-single-poll__side {
    min-width: 0;
}

.pot-single-poll__main {
    display: grid;
    gap: 18px;
}

.pot-single-poll__main .pop-poll-card {
    box-shadow: var(--pot-shadow);
}

.pot-single-poll__main .pop-poll-card__title {
    display: none;
}

.pot-single-poll__main .pop-poll-card__description {
    display: none;
}

.pot-single-poll__main .pop-term-row {
    margin-bottom: 0;
}

.pot-poll-editorial,
.pot-side-box {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--pot-border);
    border-top: 4px solid var(--pot-ink);
}

.pot-poll-editorial {
    border-top-color: var(--pot-gold);
}

.pot-poll-editorial h2,
.pot-side-box h2 {
    margin: 0;
    color: var(--pot-ink);
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.35;
}

.pot-poll-editorial p,
.pot-side-box p {
    margin: 9px 0 0;
    color: #4d5766;
}

.pot-single-poll__side {
    position: sticky;
    top: 126px;
    display: grid;
    gap: 14px;
}

.pot-side-box--share {
    border-top-color: var(--pot-accent);
}

.pot-side-box--result {
    border-top-color: var(--pot-gold);
}

.pot-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pot-share-buttons a,
.pot-share-buttons button,
.pot-side-box > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--pot-ink);
    background: #ffffff;
    border: 1px solid var(--pot-border);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.pot-share-buttons a:hover,
.pot-share-buttons a:focus,
.pot-share-buttons button:hover,
.pot-share-buttons button:focus,
.pot-side-box > a:hover,
.pot-side-box > a:focus {
    color: #ffffff;
    background: var(--pot-ink);
    border-color: var(--pot-ink);
}

.pot-side-stats {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.pot-side-stats > div {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--pot-border);
}

.pot-side-stats dt {
    color: var(--pot-muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.pot-side-stats dd {
    min-width: 0;
    margin: 0;
    color: var(--pot-ink);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.pot-side-box .pop-related-polls {
    margin: 12px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.pot-side-box .pop-related-polls > h4 {
    display: none;
}

.pot-single-poll .pot-comments {
    max-width: none;
    margin-top: 0;
}

@media (max-width: 980px) {
    .pot-poll-hero,
    .pot-single-poll__layout {
        grid-template-columns: 1fr;
    }

    .pot-single-poll__side {
        position: static;
    }
}

@media (max-width: 640px) {
    .pot-poll-hero {
        padding: 20px 16px;
    }

    .pot-poll-hero__stats {
        grid-template-columns: 1fr;
    }

    .pot-share-buttons a,
    .pot-share-buttons button,
    .pot-side-box > a {
        flex: 1 1 120px;
    }
}
