/* single.css */

/* --- Single Post --- */

.single .content-wrapper {
    padding-top: 10px;
}

.breadcrumbs {
    margin-bottom: 34px;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: 0;
}

.single-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1a237e;
    text-align: left;
}

.single-lead {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    margin: 14px 0 18px;
    color: #333;
}

.single-author-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 32px;
}

.single-author-avatar-wrap {
    flex: 0 0 58px;
}

.single-author-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.single-author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-button-text);
    font-size: 22px;
    font-weight: 700;
}

.single-meta {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.single-author-role {
    color: #777;
}

.single-thumbnail {
    text-align: left;
    margin-bottom: 30px;
}

.single-thumbnail img {
    max-width: 50%;
    height: auto;
    width: auto;
    border-radius: 8px;
}

.single-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

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

/* --- Komentarze --- */

.comment-list {
    list-style: none;
    background: #fff;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.comment-list h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

.comment-list li {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

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

.comment-author {
    font-weight: bold;
    color: #1a237e;
}

.comment-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}

.comment-content {
    font-size: 16px;
    line-height: 1.6;
}

/* --- Ankieta (poll) --- */

.poll-container-1 {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    max-width: 760px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.poll-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    max-width: 760px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.poll-description {
    margin-bottom: 25px;
    text-align: center;
}

.poll-description h3 {
    margin: 0 0 10px;
}

.poll-description h4 {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #111;
}

.poll-heading {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.poll-form {
    background: #f9f9f9;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.poll-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
}

.poll-option span {
    display: inline-block;
    line-height: 1.3;
}

.poll-form button {
    display: inline-block;
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.poll-form button:hover {
    background: #3949ab;
}

.poll-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.poll-results li {
    margin-bottom: 18px;
}

.poll-results li strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #111;
}

.poll-bar {
    width: 100%;
    height: 18px;
    background: #e6e6e6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.poll-bar-fill {
    height: 100%;
    background: #1a237e;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.poll-results li span {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.poll-total-votes,
.poll-until,
.poll-closed-info {
    margin-top: 20px;
    font-size: 15px;
    color: #222;
}

.poll-closed-info {
    background: #fff1f1;
    border: 1px solid #e57373;
    padding: 10px 12px;
    border-radius: 6px;
    color: #c62828;
    font-weight: 700;
}

.poll-module-header {
    text-align: center;
    margin-bottom: 20px;
}

.poll-module-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.poll-seo {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Rejestracja na wydarzenie --- */

.single-registration-box {
    margin: 40px 0 0;
}

.registration-header {
    text-align: center;
    margin-bottom: 25px;
}

.registration-header h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
}

.event-title {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    background: #f1f1f1;
    border-radius: 6px;
    color: #e60023;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.single-registration-box .contact-form {
    background: #f9f9f9;
    padding: 28px;
    border-radius: 12px;
    max-width: 760px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.single-registration-box .contact-form h3 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
}

.single-registration-box .contact-form h5 {
    margin: 0 0 24px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-align: left;
}

.single-registration-box .contact-form input[type="text"],
.single-registration-box .contact-form input[type="email"],
.single-registration-box .contact-form input[type="tel"] {
    width: 100%;
    height: auto;
    padding: 14px 16px;
    margin: 0 0 20px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;
}

.single-registration-box .contact-captcha {
    background: #f1f1f1;
    padding: 18px 18px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.single-registration-box .contact-captcha-question {
    display: block;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.single-registration-box .captcha-options {
    display: block;
}

.single-registration-box .captcha-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.single-registration-box .captcha-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
}

.single-registration-box .captcha-option span {
    display: inline-block;
    line-height: 1.3;
}

.single-registration-box .contact-rodo {
    background: #f1f1f1;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 16px;
}

.single-registration-box .contact-rodo label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}

.single-registration-box .contact-rodo input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: 0 0 20px;
}

.single-registration-box .contact-rodo span {
    display: block;
    line-height: 1.4;
}

.single-registration-box .contact-rodo a {
    color: #1a237e;
    text-decoration: underline;
}

.single-registration-box .contact-form input[type="submit"] {
    display: inline-block;
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.single-registration-box .contact-form input[type="submit"]:hover {
    background: #3949ab;
}

.contact-success,
.contact-error {
    max-width: 760px;
    margin: 0 auto 20px;
    padding: 12px 14px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    box-sizing: border-box;
}

.contact-success {
    background-color: #d7ffd9;
    border: 1px solid #9acd9a;
    color: #2e7d32;
}

.contact-error {
    background-color: #ffe5e5;
    border: 1px solid #e57373;
    color: #c62828;
}

/* --- Mobile --- */

@media (max-width: 768px) {
    .single-top {
        flex-direction: column;
    }

    .single-right img {
        width: 100%;
        max-width: 100%;
    }

    .single-title {
        font-size: 26px;
    }

    .single-lead {
        font-size: 18px;
    }

    .single-author-meta {
        gap: 12px;
        align-items: flex-start;
    }

    .single-author-avatar-wrap {
        flex-basis: 46px;
    }

    .single-author-avatar {
        width: 46px;
        height: 46px;
    }

    .single-meta {
        font-size: 13px;
    }

    .single-thumbnail img {
        max-width: 100%;
    }

    .poll-container {
        width: 100%;
        margin: 25px 0;
        padding: 16px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .poll-description {
        text-align: left;
    }

    .poll-description h4 {
        font-size: 20px;
    }

    .poll-heading {
        font-size: 18px;
    }

    .poll-form .poll-option {
        margin-bottom: 18px;
    }

    .poll-form .poll-option input[type="radio"] {
        width: 22px;
        height: 22px;
    }
}

/* --- Obsługa klawisza powrotu z czytania posta --- */

.news-back-button {
    position: fixed;
    top: 16px;
    left: max(10px, calc((100vw - 1200px) / 2 + 10px));
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #3949ab;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.news-back-button:hover {
    background: #5c6bc0;
}


/* --- Obsługa yutube --- */

.wp-block-embed,
.wp-block-embed__wrapper,
.wp-embedded-content,
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
    max-width: 100%;
}

.wp-block-embed__wrapper iframe,
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtube-nocookie.com"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.entry-content iframe {
    max-width: 100%;
}

