/* ============================================
   MOTOR EXPERT - News/Aktuality Page Styles
   Články, novinky, filtry
   ============================================ */

/* =============================================
   PAGE HEADER (same as other pages)
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header p {
    opacity: 0.9;
    font-size: 17px;
    margin-bottom: 0;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.7;
}

/* =============================================
   FILTERS
   ============================================= */
.news-filters {
    background: var(--white);
    padding: 25px 20px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px;
    z-index: 50;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 25px;
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* =============================================
   NEWS GRID
   ============================================= */
.news-section {
    padding: 60px 20px 80px;
    background: var(--gray-50);
    min-height: 400px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   NEWS CARD
   ============================================= */
.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(45, 95, 63, 0.15);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image > img {
    transform: scale(1.05);
}

.news-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    font-size: 50px;
}

/* Placeholder with logo */
.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d8a4e 0%, #3a9d5c 50%, #4ab068 100%);
}

.news-card-placeholder .placeholder-logo {
    max-width: 140px;
    height: auto;
    opacity: 0.25;
    filter: brightness(10);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.news-card-content {
    padding: 25px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 0 25px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.news-card:hover .news-card-link {
    gap: 10px;
}

/* =============================================
   LOAD MORE
   ============================================= */
.load-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.news-empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.news-empty h3 {
    font-size: 24px;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.news-empty p {
    color: var(--gray-500);
}

/* =============================================
   MODAL
   ============================================= */
/* Modal overridy (základ v components.css) */
.modal-header,
.modal-header * {
    color: var(--white);
}

.modal-footer {
    justify-content: space-between;
    align-items: center;
}

/* Article content in modal */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-500);
}

.article-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2, 
.article-content h3 {
    color: var(--gray-900);
    margin: 25px 0 15px;
}

.article-content ul, 
.article-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-content a {
    color: var(--primary);
}

/* =============================================
   NEWSLETTER CTA
   ============================================= */
.newsletter-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 20px;
}

.newsletter-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.newsletter-text p {
    opacity: 0.9;
    font-size: 16px;
}

/* =============================================
   SKELETON
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-card .news-card-content {
    padding: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: #2d2d2d;
    color: #ccc;
    padding: 60px 20px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    line-height: 1.7;
    font-size: 14px;
}

.footer h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 30px;
    }
    
    .news-filters {
        position: static;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* PDF Badge */
.news-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.news-card-author {
    margin-left: 12px;
    font-size: 13px;
}

.article-pdf {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}