/* ========================================
   STRONA AKTUALNOŚCI - PEARL THEME
   ======================================== */

/* ===== SEKCJA HERO ===== */
.news-hero-pearl {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--pearl-light) 100%);
    position: relative;
}

.news-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-brand-soft);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 1.5rem;
}

.news-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.news-hero-lead {
    margin-bottom: 0;
}

.news-section-bg {
    background: var(--pearl-white);
}

/* ===== LAYOUT AKTUALNOŚCI ===== */
.news-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.news-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.news-sidebar::-webkit-scrollbar {
    width: 6px;
}

.news-sidebar::-webkit-scrollbar-track {
    background: var(--pearl-light);
    border-radius: 10px;
}

.news-sidebar::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 10px;
}

.news-sidebar::-webkit-scrollbar-thumb:hover {
    background: #8BBE3D;
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--gray-200);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title .k-svg-icon,
.sidebar-title svg {
    width: 20px;
    height: 20px;
    color: var(--brand-green) !important;
    fill: var(--brand-green) !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--pearl-light);
    color: var(--brand-green);
    border-color: var(--gray-200);
}

.sidebar-link.active {
    background: var(--gradient-brand-soft);
    color: var(--brand-green);
    font-weight: 600;
    border-color: var(--brand-green);
}

.sidebar-link-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-link-icon .k-svg-icon,
.sidebar-link-icon svg {
    width: 16px;
    height: 16px;
    color: inherit !important;
    fill: inherit !important;
}

.sidebar-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sidebar-link-text {
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-link-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.sidebar-link.active .sidebar-link-date {
    color: var(--brand-green);
    opacity: 0.8;
}

/* ===== KATEGORIE ===== */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    width: 100%;
}

.category-badge:hover {
    border-color: var(--brand-green);
    background: var(--pearl-light);
    color: var(--brand-green);
}

.category-badge.active {
    border-color: var(--brand-green);
    background: var(--gradient-brand-soft);
    color: var(--brand-green);
}

.category-badge .k-svg-icon,
.category-badge svg {
    width: 14px;
    height: 14px;
    color: inherit !important;
    fill: inherit !important;
    flex-shrink: 0;
}

.category-count {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
}

.category-badge.active .category-count {
    background: rgba(164, 214, 94, 0.2);
    color: var(--brand-green);
}

/* ===== TREŚĆ AKTUALNOŚCI ===== */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-article {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--gray-200);
    border-left: 6px solid var(--brand-green);
    transition: all var(--transition-base);
    scroll-margin-top: 140px;
}

.news-article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-left-color: var(--brand-blue);
}

.news-article.priority-ważne {
    border-left-color: #EF4444;
}

.news-article.priority-ważne:hover {
    border-left-color: #DC2626;
}

.news-article.priority-nowość {
    border-left-color: #A4D65E;
}

.news-article.priority-nowość:hover {
    border-left-color: #8BBE3D;
}

/* ===== NAGŁÓWEK ARTYKUŁU ===== */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-badge.aktualizacje {
    background: #DBEAFE;
    color: #1E40AF;
}

.article-badge.przepisy {
    background: #FEF3C7;
    color: #D97706;
}

.article-badge.porady {
    background: #E0E7FF;
    color: #4F46E5;
}

.article-badge.system {
    background: #F3E8FF;
    color: #7C3AED;
}

.article-badge .k-svg-icon,
.article-badge svg {
    width: 14px;
    height: 14px;
    color: inherit !important;
    fill: inherit !important;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.article-date .k-svg-icon,
.article-date svg {
    width: 14px;
    height: 14px;
    color: inherit !important;
    fill: inherit !important;
}

.article-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-priority-badge.ważne {
    background: #FEE2E2;
    color: #DC2626;
}

.article-priority-badge.nowość {
    background: #E8F5E9;
    color: #16A34A;
}

.article-priority-badge .k-svg-icon,
.article-priority-badge svg {
    width: 14px;
    height: 14px;
    color: inherit !important;
    fill: inherit !important;
}

/* ===== IKONA ARTYKUŁU ===== */
.article-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-brand-soft);
    border: 2px solid var(--brand-green);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all var(--transition-base);
}

.news-article:hover .article-icon-large {
    transform: scale(1.05) rotate(-3deg);
}

.article-icon-large .k-svg-icon,
.article-icon-large svg {
    width: 40px;
    height: 40px;
    color: var(--brand-green) !important;
    fill: var(--brand-green) !important;
}

/* ===== TREŚĆ ARTYKUŁU ===== */
.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.article-content ul li::marker {
    color: var(--brand-green);
    font-weight: 700;
}

.article-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

.article-content ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-highlight {
    background: linear-gradient(135deg, rgba(164, 214, 94, 0.1) 0%, rgba(102, 217, 239, 0.1) 100%);
    border-left: 4px solid var(--brand-green);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.article-highlight strong {
    color: var(--brand-green);
}

/* ===== STOPKA ARTYKUŁU ===== */
.article-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    background: var(--pearl-light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.article-tag .k-svg-icon,
.article-tag svg {
    width: 12px;
    height: 12px;
    color: inherit !important;
    fill: inherit !important;
}

/* ===== BRAK ARTYKUŁÓW ===== */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--gray-300);
}

.no-articles .icon-container-white {
    margin: 0 auto 1.5rem;
}

.no-articles h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.no-articles p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 1200px) {
    .news-layout {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }

    .news-sidebar {
        top: 80px;
        max-height: calc(100vh - 100px);
    }
}

@media (max-width: 992px) {
    .news-hero-pearl {
        padding: 5rem 0 3rem;
    }

    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-sidebar {
        position: relative;
        top: 0;
        order: 1;
        max-height: none;
        overflow-y: visible;
    }

    .news-content {
        order: 2;
    }

    .sidebar-sticky {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .news-article {
        padding: 2.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .news-hero-pearl {
        padding: 4rem 0 3rem;
    }

    .news-layout {
        gap: 1.5rem;
    }

    .sidebar-sticky {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar-section {
        padding: 1.25rem;
    }

    .sidebar-nav {
        gap: 0.375rem;
    }

    .sidebar-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }

    .sidebar-link-icon {
        width: 20px;
        height: 20px;
    }

    .sidebar-link-icon .k-svg-icon,
    .sidebar-link-icon svg {
        width: 14px;
        height: 14px;
    }

    .category-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .news-article {
        padding: 2rem;
    }

    .article-icon-large {
        width: 70px;
        height: 70px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 0.9375rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .news-hero-pearl {
        padding: 3.5rem 0 2.5rem;
    }

    .news-layout {
        gap: 1.25rem;
    }

    .sidebar-section {
        padding: 1rem;
    }

    .sidebar-title {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .sidebar-link {
        padding: 0.625rem 0.75rem;
    }

    .sidebar-link-text {
        font-size: 0.8125rem;
    }

    .sidebar-link-date {
        font-size: 0.6875rem;
    }

    .news-article {
        padding: 1.5rem;
    }

    .article-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-icon-large {
        width: 60px;
        height: 60px;
    }

    .article-icon-large .k-svg-icon,
    .article-icon-large svg {
        width: 32px;
        height: 32px;
    }

    .article-title {
        font-size: 1.375rem;
    }
}