/* Plik: /assets/css/single-prop-news.css (wersja 2.2 - Usunięto podkreślenie z przycisków) */

:root {
    --news-primary-color: #007bff;
    --news-secondary-color: #6c757d;
    --news-border-color: #e9ecef;
}

/* --- Ogólne style nawigacji --- */
.single-news-navigation { margin-bottom: 1.5rem; }
.back-to-archive-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--news-secondary-color); font-weight: 600; transition: color 0.2s ease; }
.back-to-archive-link:hover { color: var(--news-primary-color); }
.back-to-archive-link .back-arrow-icon { transition: transform 0.2s ease; }
.back-to-archive-link:hover .back-arrow-icon { transform: translateX(-3px); }
.single-news-navigation--bottom { margin-top: 2.5rem; margin-bottom: 0; display: flex; justify-content: left; }

/* --- Nagłówek Artykułu --- */
.prop-news-single-article .entry-header { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--news-border-color); padding-bottom: .5rem; }
.prop-news-single-article .entry-header-main { flex-grow: 1; }
.prop-news-single-article .entry-title { margin: 0 0 0.75rem 0; }
.prop-news-single-article .entry-header-logo-wrapper { flex-shrink: 0; }
.prop-news-single-article .entry-header-logo { display: block; max-height: 60px; width: auto; max-width: 150px; object-fit: contain; /*background-color: #343a40; border: 1px solid #495057;*/ padding: 8px; border-radius: 8px; box-sizing: border-box; }

/* --- Metadane w Nagłówku --- */
.prop-news-single-article .entry-meta { font-size: 0.9em; color: var(--news-secondary-color); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.prop-news-single-article .meta-item-with-icon { display: inline-flex; align-items: center; gap: 6px; }
.prop-news-single-article .posted-on { cursor: help; }
.prop-news-single-article .meta-icon { flex-shrink: 0; margin-top: -2px; }
.prop-news-single-article .news-type-badge {
    padding: 4px 10px;
    border-radius: 6px; /* ZMIANA: 15px → 6px */
    font-weight: 500;   /* ZMIANA: 600 → 500 */
    font-size: 0.85em;  /* ZMIANA: 0.9em → 0.85em */
    background-color: #f1f1f1;
    color: #555;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s ease;
}
.prop-news-single-article .news-type-badge:hover { opacity: 0.8; }
.prop-news-single-article .news-type--promocja .news-type-badge { background-color: #e6f4e5; color: #3a7d34; }
.prop-news-single-article .news-type--zmiana_zasad .news-type-badge { background-color: #fff4e5; color: #d95f02; }

/* Link do filtrowanych newsów pod metadanymi */
.prop-news-single-article .entry-meta-secondary { margin-top: 0.75rem; }
.firm-news-link { font-size: 0.85em; font-weight: 600; color: var(--news-secondary-color); text-decoration: none; transition: color .2s ease; }
.firm-news-link:hover { color: var(--news-primary-color); }

/* --- Przycisk udostępniania --- */
.entry-meta .news-share-popover { top: calc(100% + 10px); bottom: auto; right: 0; left: auto; transform: translateY(-10px); }
.entry-meta .news-share-popover::after { top: auto; bottom: 100%; border-color: transparent transparent #fff transparent; }

/* --- Treść i Stopka Artykułu --- */
.prop-news-single-article .entry-content { line-height: 1.7; }
.prop-news-single-article .entry-content img { max-width: 100%; height: auto; border-radius: 8px; }

.prop-news-single-article .entry-footer {
    margin-top: 2.5rem;
    clear: both;
}

.footer-buttons-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }
/* ZMIANA: Dodano !important, aby nadpisać style motywu */
.footer-buttons-wrapper .button { text-decoration: none !important; padding: 12px 24px; border-radius: 6px; font-weight: 700; border: 1px solid transparent; transition: all .2s ease; display: inline-block; text-align: center; }
.footer-buttons-wrapper .primary-button { background-color: var(--news-primary-color); color: #fff; order: 1; }
.footer-buttons-wrapper .primary-button:hover { background-color: #0056b3; }
.footer-buttons-wrapper .secondary-button { background-color: transparent; color: var(--news-secondary-color); border-color: #ccc; order: 2; }
.footer-buttons-wrapper .secondary-button:hover { background-color: #f8f9fa; color: #333; border-color: #bbb; }

@media (min-width: 768px) {
    .footer-buttons-wrapper { flex-direction: row; justify-content: flex-start; gap: 1rem; }
    .footer-buttons-wrapper .button { width: auto; }
}

/* --- Obrazek wyróżniający i Źródło informacji --- */
a.prop-news-featured-image-link { display: block; margin-bottom: 1.5em; } 
.prop-news-featured-image { float: right; width: 33.33%; max-width: 250px; margin-top: 5px; margin-bottom: 1em; margin-left: 1.5em; padding: 0; line-height: 0; }
a.prop-news-featured-image-link .prop-news-featured-image { margin-bottom: 0; }
.prop-news-featured-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); display: block; }

@media (max-width: 768px) {
    a.prop-news-featured-image-link { margin-left: 0; margin-right: 0; }
    .prop-news-featured-image { float: none; width: 100%; max-width: 100%; margin-left: 0; margin-bottom: 1.5em; }
}

.prop-news-source-info {
    display: flex;
    justify-content: flex-start;
    margin-top: 2.5rem;
}
.prop-news-source-info .source-link, .prop-news-source-info .source-text { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85em; font-weight: 600; color: var(--news-secondary-color); text-decoration: none; transition: color 0.2s ease; }
.prop-news-source-info .source-link:hover { color: var(--news-primary-color); }
.prop-news-source-info .source-icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; stroke: currentColor; }

/* --- Nawigacja Post-Post --- */
.prop-news-post-navigation { margin-top: 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--news-border-color); border-bottom: 0px solid var(--news-border-color); }
.prop-news-post-navigation .nav-links { display: flex; justify-content: space-between; gap: 2rem; }
.prop-news-post-navigation .nav-previous, .prop-news-post-navigation .nav-next { flex-basis: 50%; }
.prop-news-post-navigation .nav-next { text-align: right; }
.prop-news-post-navigation a { text-decoration: none; color: #333; transition: color 0.2s ease; }
.prop-news-post-navigation a:hover { color: var(--news-primary-color); }
.prop-news-post-navigation .ast-post-nav { display: block; font-size: 0.9em; color: var(--news-secondary-color); font-weight: 600; margin-bottom: 0.25rem; }
.prop-news-post-navigation .post-title { display: block; font-weight: 700; }

/* --- Style dla Lightboxa --- */
#prop-news-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
#prop-news-lightbox.active {
    display: flex;
}
#prop-news-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Style dla sekcji wideo pod artykułem --- */
.below-single-prop-news-widget-area {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.below-single-prop-news-widget-area .widget-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}
.below-single-prop-news-widget-area #prop-hp-video-block {
    margin: 0;
}
.below-single-prop-news-widget-area .video-grid {
    margin-bottom: 0 !important;
}
.video-widget-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
	border-bottom: 1px solid #e9ecef;
}
.video-widget-footer a {
    text-decoration: none;
    font-weight: 600;
    color: var(--news-secondary-color, #6c757d);
    transition: color 0.2s ease-in-out;
}
.video-widget-footer a:hover {
    color: var(--news-primary-color, #007bff);
}
/* cursor: help na dacie w liście (unifikacja) */
.news-card-date {
    cursor: help;
}
