/* Plik: /assets/css/prop-firm-news-feed.css (Wersja 3.9 - Pełna stabilna) */
:root {
    --news-primary-color: #007bff;
    --news-secondary-color: #6c757d;
    --news-border-color: #e9ecef;
    --news-card-bg: #fff;
    --news-card-shadow: 0 4px 8px rgba(0, 0, 0, .05);
    --news-card-hover-bg: #f8f9fa;
    --logo-bg-color: #343a40;
    --logo-border-color: #495057;
}

/* ======================================================= */
/* 1. KONTENER FILTRÓW (3 Dropdowny w jednej linii)       */
/* ======================================================= */
.news-filters-wrapper { 
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    max-width: 900px; 
    margin: 0 auto 2.5rem auto; 
}

.custom-select-filter-wrapper { position: relative; min-width: 0; }
.custom-select-filter-wrapper .select-btn { display: flex; height: 42px; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: 8px; cursor: pointer; background-color: #fff; border: 1px solid #ccc; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.select-btn span { font-weight: 500; font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.select-btn .arrow-down { transition: transform 0.3s ease; flex-shrink: 0; color: #666; }
.custom-select-filter-wrapper.active .select-btn .arrow-down { transform: rotate(-180deg); }

.custom-select-filter-wrapper .content { 
    display: none; 
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; 
    width: 100%; 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); 
    z-index: 1000; 
    padding: 15px; 
    box-sizing: border-box; 
}
.custom-select-filter-wrapper.active .content { display: block; }
.search-box .search-input { height: 40px; width: 100%; font-size: 1rem; padding: 0 15px; border-radius: 6px; border: 1px solid #b3b3b3; outline: none; box-sizing: border-box; }
.content .options-list { margin-top: 10px; max-height: 250px; overflow-y: auto; padding: 0; list-style: none !important; margin-left: 0; }
.options-list .option-item { display: flex; align-items: center; height: 50px; cursor: pointer; padding: 0 13px; border-radius: 6px; transition: background-color 0.2s ease; }
.options-list .option-item:hover,
.options-list .option-item.selected,
.options-list .option-item.highlighted {
    background: #f2f2f2;
}

/* Opcjonalnie: wyraźniejsze zaznaczenie klawiaturą (accessibility) */
.options-list .option-item.highlighted {
    background-color: #e8f0fe;
    outline: 2px solid #007bff;
    outline-offset: -2px;
}
.option-item .option-logo { width: 32px; height: 32px; object-fit: contain; margin-right: 12px; /*background-color: var(--logo-bg-color); border: 1px solid var(--logo-border-color); */ padding: 3px; border-radius: 4px; box-sizing: border-box; flex-shrink: 0; }
.option-item .option-text { font-size: 1rem; color: #333; }

/* ======================================================= */
/* 2. ZNACZNIKI SEGMENTU (Prop / Tech)                    */
/* ======================================================= */
.news-segment-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-right: 8px;
    vertical-align: middle;
}

.segment--prop { background-color: #e3f2fd; color: #007bff !important; }
.segment--tech { background-color: #f1f1f1; color: #000 !important; }

/* ======================================================= */
/* 3. KARTY NEWSÓW (Layout i Kolory)                      */
/* ======================================================= */
.prop-news-feed-container { display: flex; flex-direction: column; gap: 2.5rem; max-width: 800px; margin: 0 auto; }
.news-card-v2 { background-color: var(--news-card-bg); border: 1px solid var(--news-border-color); border-radius: 12px; box-shadow: var(--news-card-shadow); display: flex; gap: 1.5rem; padding: 1.5rem; transition: box-shadow .2s ease, border-color .2s ease; position: relative; }
.news-card-v2:hover { border-color: #ddd; box-shadow: 0 6px 12px rgba(0,0,0,0.07); }

.news-card-logo-aside { flex-shrink: 0; width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; /*background-color: var(--logo-bg-color); border: 1px solid var(--logo-border-color); border-radius: 8px; */padding: 5px; box-sizing: border-box; }
.news-card-logo-aside .news-card-logo { width: 100%; height: 100%; object-fit: contain; }

.news-card-main-content { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }

/* Nagłówek karty */
.news-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.news-header-left { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }

.news-card-firm-name { font-weight: 700; font-size: 1.05rem; color: #333 !important; text-decoration: none !important; transition: color .2s ease; }
.news-card-firm-name:hover { color: var(--news-primary-color) !important; }

.news-card-meta-line { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.news-card-date { font-size: 0.8em; color: var(--news-secondary-color) !important; }

/* Tytuł */
.news-card-title { margin: 0.5rem 0 0.75rem 0; font-size: 1.45rem; line-height: 1.25; }
.news-card-title a { text-decoration: none !important; color: #111 !important; transition: color .2s ease; }
.news-card-title a:hover { color: var(--news-primary-color) !important; }

/* Treść */
.news-card-content { line-height: 1.6; color: #444 !important; font-size: 0.95em; transition: color .2s ease; }
.news-card-content-link { text-decoration: none !important; display: block; margin-bottom: 1.5rem; }
.news-card-content-link:hover .news-card-content { color: #000 !important; }

/* ======================================================= */
/* 4. STOPKA I PRZYCISKI                                  */
/* ======================================================= */
.news-card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 1rem; 
    margin-top: auto; 
    padding-top: 10px;
}

.news-card-footer .button { 
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important; 
    padding: 10px 20px !important; 
    border-radius: 6px; 
    font-weight: 700; 
    font-size: 0.9rem;
    transition: all .2s ease; 
    line-height: 1.2 !important;
    border: none !important;
}

.news-card-footer .primary-button { background-color: #ffca2c !important; color: #000 !important; }
.news-card-footer .primary-button:hover { background-color: #ffc107 !important; transform: translateY(-1px); }

.news-card-footer .secondary-button { 
    background-color: #f8f9fa !important; 
    color: var(--news-secondary-color) !important; 
    border: 1px solid #ddd !important; 
}

.news-card-share-wrapper { margin-left: auto; flex-shrink: 0; }

/* Badge typu */
.news-type-badge { padding: 4px 10px; border-radius: 6px; font-weight: 500; font-size: 0.85em; background-color: #f1f1f1; color: #555 !important; text-decoration: none !important; }
.news-type--promocja .news-type-badge { background-color: #e6f4e5; color: #3a7d34 !important; }
.news-type--zmiana_zasad .news-type-badge { background-color: #fff4e5; color: #d95f02 !important; }

/* ======================================================= */
/* 5. PAGINACJA (Fix rzędu i list Astry)                  */
/* ======================================================= */
.pagination-container { 
    display: flex; 
    justify-content: center; 
    margin-top: 3rem; 
    margin-bottom: 3rem;
}

.pagination-container .page-numbers { 
    display: flex; 
    gap: 8px; 
    list-style: none !important; 
    padding: 0; 
    margin: 0;
}

.pagination-container .page-numbers li { margin: 0; padding: 0; list-style: none !important; }
.pagination-container .page-numbers li::before { display: none !important; }

.pagination-container .page-numbers a, 
.pagination-container .page-numbers span { 
    display: inline-block; 
    padding: 8px 14px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    text-decoration: none !important; 
    color: #333; 
    font-weight: 600; 
    transition: all .2s ease; 
    background-color: #fff;
}

.pagination-container .page-numbers a:hover { background-color: #f8f9fa; border-color: #ccc; }
.pagination-container .page-numbers .current { 
    background-color: var(--news-primary-color); 
    color: #fff !important; 
    border-color: var(--news-primary-color); 
}

/* ======================================================= */
/* 6. OPIS SEO (Szare tło)                                */
/* ======================================================= */
.filtered-archive-description { 
    max-width: 800px; 
    margin: 0 auto 2.5rem auto; 
    padding: 25px 30px; 
    background-color: #f8f9fa; 
    border: 1px solid #e9ecef; 
    border-radius: 12px; 
    font-size: 0.95em; 
    line-height: 1.7; 
    color: #444; 
}

.filtered-archive-description p { margin-bottom: 1rem; }
.filtered-archive-description p:last-child { margin-bottom: 0; }

/* ======================================================= */
/* 7. RESPONSIVE                                          */
/* ======================================================= */
@media (max-width: 768px) { 
    .news-filters-wrapper { grid-template-columns: 1fr; } 
    .news-card-title { font-size: 1.25rem; }
    .news-card-v2 { flex-direction: column; gap: 1rem; }
}