/* =========================================================
   SAJÓMENTE V7 – SZAVAZÁSI MODUL
   Elkülönített adminisztrációs és publikus stílusok
   ========================================================= */

:root {
    --poll-primary: #173d32;
    --poll-primary-hover: #245747;
    --poll-accent: #c49a55;
    --poll-text: #202923;
    --poll-muted: #718078;
    --poll-border: #e5eae6;
    --poll-surface: #ffffff;
    --poll-background: #f5f7f5;
    --poll-radius: 12px;
}

/* ADMIN – közös elemek */

.poll-admin,
.poll-public {
    color: var(--poll-text);
}

.poll-admin .poll-page-header,
.poll-public .poll-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.poll-admin .poll-page-header h1,
.poll-public .poll-page-header h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 750;
    letter-spacing: -0.5px;
}

.poll-admin .poll-muted,
.poll-public .poll-muted {
    color: var(--poll-muted);
}

.poll-admin .poll-button,
.poll-public .poll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--poll-primary);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.poll-admin .poll-button:hover,
.poll-public .poll-button:hover {
    background: var(--poll-primary-hover);
    transform: translateY(-1px);
}

.poll-admin .poll-button-secondary {
    background: #edf1ee;
    color: var(--poll-primary);
}

.poll-admin .poll-button-secondary:hover {
    background: #e0e8e2;
}

/* ADMIN – lista és táblázat */

.poll-admin .poll-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--poll-border);
    border-radius: var(--poll-radius);
    background: var(--poll-surface);
}

.poll-admin .poll-table {
    width: 100%;
    border-collapse: collapse;
}

.poll-admin .poll-table th,
.poll-admin .poll-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--poll-border);
    text-align: left;
    vertical-align: middle;
}

.poll-admin .poll-table th {
    background: #f7f9f7;
    color: #65736b;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.poll-admin .poll-table tr:last-child td {
    border-bottom: 0;
}

.poll-admin .poll-table td:first-child {
    font-weight: 650;
}

.poll-admin .poll-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 30px;
    background: #edf1ee;
    color: #526158;
    font-size: 12px;
    font-weight: 700;
}

.poll-admin .poll-status-active {
    background: #e3f3e8;
    color: #247342;
}

.poll-admin .poll-status-closed {
    background: #f0eeee;
    color: #6e6666;
}

.poll-admin .poll-status-scheduled {
    background: #fff3dc;
    color: #91651d;
}

.poll-admin .poll-status-archived {
    background: #ececf4;
    color: #62627c;
}

/* ADMIN – szerkesztő űrlap */

.poll-admin .poll-form-card {
    padding: 26px;
    border: 1px solid var(--poll-border);
    border-radius: var(--poll-radius);
    background: var(--poll-surface);
}

.poll-admin .poll-form-group {
    margin-bottom: 22px;
}

.poll-admin .poll-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #35443b;
    font-size: 14px;
    font-weight: 700;
}

.poll-admin .poll-form-group input[type="text"],
.poll-admin .poll-form-group input[type="datetime-local"],
.poll-admin .poll-form-group textarea,
.poll-admin .poll-form-group select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #dce3dd;
    border-radius: 8px;
    background: #fff;
    color: var(--poll-text);
    font: inherit;
    box-sizing: border-box;
}

.poll-admin .poll-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.poll-admin .poll-form-group input:focus,
.poll-admin .poll-form-group textarea:focus,
.poll-admin .poll-form-group select:focus {
    outline: none;
    border-color: var(--poll-primary);
    box-shadow: 0 0 0 3px rgba(23, 61, 50, .09);
}

.poll-admin .poll-form-help {
    display: block;
    margin-top: 6px;
    color: var(--poll-muted);
    font-size: 12px;
}

.poll-admin .poll-options-input {
    min-height: 180px !important;
    line-height: 1.8;
}

.poll-admin .poll-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 14px;
}

.poll-admin .poll-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--poll-primary);
}

/* PUBLIKUS – szavazáslista */

.poll-public .poll-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 22px;
}

.poll-public .poll-card {
    overflow: hidden;
    border: 1px solid var(--poll-border);
    border-radius: 14px;
    background: var(--poll-surface);
    box-shadow: 0 4px 18px rgba(20, 40, 30, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.poll-public .poll-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(20, 40, 30, .09);
}

.poll-public .poll-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #edf1ee;
}

.poll-public .poll-card-content {
    padding: 21px;
}

.poll-public .poll-card h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 750;
}

.poll-public .poll-card h2 a {
    color: inherit;
    text-decoration: none;
}

.poll-public .poll-card h2 a:hover {
    color: var(--poll-primary-hover);
}

.poll-public .poll-card-description {
    margin: 0 0 18px;
    color: var(--poll-muted);
    font-size: 14px;
    line-height: 1.65;
}

.poll-public .poll-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--poll-muted);
    font-size: 12px;
}

/* PUBLIKUS – szavazás részletei */

.poll-public .poll-detail {
    max-width: 850px;
    margin: 0 auto;
}

.poll-public .poll-detail-header {
    margin-bottom: 26px;
}

.poll-public .poll-detail-header h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
    letter-spacing: -.7px;
}

.poll-public .poll-detail-description {
    color: #66736b;
    font-size: 16px;
    line-height: 1.75;
}

.poll-public .poll-detail-image {
    display: block;
    width: 100%;
    max-height: 430px;
    margin: 22px 0;
    border-radius: 14px;
    object-fit: cover;
}

/* PUBLIKUS – válaszlehetőségek */

.poll-public .poll-vote-form {
    padding: 24px;
    border: 1px solid var(--poll-border);
    border-radius: 14px;
    background: var(--poll-surface);
}

.poll-public .poll-option {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    margin-bottom: 11px;
    padding: 12px 15px;
    border: 1px solid var(--poll-border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.poll-public .poll-option:hover {
    border-color: var(--poll-primary);
    background: #f8faf8;
}

.poll-public .poll-option input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    accent-color: var(--poll-primary);
}

.poll-public .poll-option-text {
    font-size: 15px;
    line-height: 1.45;
}

/* PUBLIKUS – eredmények */

.poll-public .poll-results {
    padding: 24px;
    border: 1px solid var(--poll-border);
    border-radius: 14px;
    background: var(--poll-surface);
}

.poll-public .poll-result {
    margin-bottom: 22px;
}

.poll-public .poll-result:last-child {
    margin-bottom: 0;
}

.poll-public .poll-result-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 650;
}

.poll-public .poll-result-track {
    overflow: hidden;
    height: 11px;
    border-radius: 20px;
    background: #edf1ee;
}

.poll-public .poll-result-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--poll-primary);
    transition: width .4s ease;
}

.poll-public .poll-result-meta {
    margin-top: 6px;
    color: var(--poll-muted);
    font-size: 12px;
}

/* PUBLIKUS – megosztás és üzenetek */

.poll-public .poll-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.poll-public .poll-share a,
.poll-public .poll-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--poll-border);
    border-radius: 7px;
    background: #fff;
    color: var(--poll-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.poll-public .poll-share a:hover,
.poll-public .poll-share button:hover {
    border-color: var(--poll-primary);
    background: #f5f8f5;
}

.poll-public .poll-notice {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #edf5ef;
    color: #285d3a;
    font-size: 14px;
    line-height: 1.5;
}

.poll-public .poll-notice-error {
    background: #fbefed;
    color: #963f35;
}

/* CIKKBE ÁGYAZOTT SZAVAZÁS */

.poll-embedded {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid var(--poll-border);
    border-left: 4px solid var(--poll-accent);
    border-radius: 12px;
    background: #fafbf9;
}

.poll-embedded h2 {
    margin-top: 0;
    color: var(--poll-primary);
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .poll-admin .poll-page-header,
    .poll-public .poll-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .poll-admin .poll-form-card,
    .poll-public .poll-vote-form,
    .poll-public .poll-results {
        padding: 17px;
    }

    .poll-admin .poll-table th,
    .poll-admin .poll-table td {
        padding: 11px 12px;
    }

    .poll-public .poll-card-content {
        padding: 17px;
    }

    .poll-public .poll-detail-header h1 {
        font-size: 29px;
    }

    .poll-public .poll-share {
        gap: 7px;
    }
}



/* Sajómente – nyilvános szavazási oldal, új megjelenés */
.poll-public {
    width: min(820px, calc(100% - 40px));
    margin: 34px auto 76px;
    color: #202923;
}

.poll-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #78827c;
    font-size: 13px;
}
.poll-breadcrumb a {
    color: #52665b;
    text-decoration: none;
}
.poll-breadcrumb a:hover { color: #c62828; }

.poll-page-header { margin: 0 0 26px; }
.poll-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7;
    margin: 0 0 26px;
    border-radius: 13px;
    background: #26352e;
}
.poll-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.68), rgba(0,0,0,.04) 72%);
    pointer-events: none;
}
.poll-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.poll-hero-label {
    position: absolute;
    z-index: 1;
    left: 24px;
    bottom: 22px;
    padding: 9px 13px;
    border-radius: 4px;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}
.poll-page-header h1 {
    margin: 0 0 14px;
    color: #202923;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.16;
    letter-spacing: -.025em;
}
.poll-public .poll-detail-description {
    margin: 0;
    color: #5e6962;
    font-size: 16px;
    line-height: 1.75;
}

.poll-public .poll-vote-form {
    display: grid;
    gap: 12px;
    margin: 28px 0 22px;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid #e7eae7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(25, 45, 34, .07);
}
.poll-public .poll-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid #e2e7e3;
    border-radius: 9px;
    background: #fbfcfb;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.poll-public .poll-option:hover {
    border-color: #c62828;
    background: #fffafa;
}
.poll-public .poll-option input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    accent-color: #c62828;
}
.poll-public .poll-option:has(input:checked) {
    border-color: #c62828;
    background: #fff5f5;
}
.poll-public .poll-option-text {
    color: #26332b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}
.poll-public .poll-submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: #c62828;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.poll-public .poll-submit-button:hover {
    background: #a91f1f;
    transform: translateY(-1px);
}

.poll-public .poll-voted-notice {
    display: grid;
    gap: 5px;
    margin: 24px 0;
    padding: 20px 22px;
    border: 1px solid #dce9df;
    border-left: 4px solid #3c8055;
    border-radius: 9px;
    background: #f5faf6;
    color: #315b3d;
}
.poll-public .poll-voted-notice span { font-size: 14px; }

.poll-public .poll-participation-note {
    margin: 22px 0;
    padding: 17px 20px;
    border-radius: 9px;
    background: #f4f6f4;
    color: #657068;
    font-size: 13px;
    line-height: 1.6;
}
.poll-public .poll-participation-note strong {
    display: block;
    margin-bottom: 4px;
    color: #35443a;
}
.poll-public .poll-participation-note p { margin: 0; }

.poll-public .poll-share {
    margin: 28px 0;
    padding-top: 22px;
    border-top: 1px solid #e8ece8;
}
.poll-public .poll-share h2 {
    margin: 0 0 13px;
    color: #344139;
    font-size: 17px;
}
.poll-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.poll-share-links a,
.poll-share-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid #dfe5e0;
    border-radius: 7px;
    background: #fff;
    color: #35443a;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.poll-share-links a:hover,
.poll-share-links button:hover {
    border-color: #c62828;
    color: #c62828;
}

.poll-public .poll-status-panel {
    display: grid;
    gap: 7px;
    margin-top: 30px;
    padding: 23px 25px;
    border-radius: 12px;
    background: #203b30;
    color: #fff;
}
.poll-status-panel span {
    color: #e6b8b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}
.poll-status-panel strong { font-size: 19px; }
.poll-status-panel p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .poll-public {
        width: calc(100% - 28px);
        margin-top: 22px;
    }
    .poll-hero { aspect-ratio: 4 / 3; border-radius: 9px; }
    .poll-hero-label { left: 14px; bottom: 14px; }
    .poll-public .poll-vote-form { padding: 17px; }
    .poll-share-links { display: grid; grid-template-columns: 1fr 1fr; }
    .poll-share-links a,
    .poll-share-links button { width: 100%; box-sizing: border-box; }
    .poll-public .poll-status-panel { padding: 19px; }
}
