﻿/* Modern News/Insights Page - KodLegal Design System */

/* Page Header - Enhanced */
.page-header {
    background: linear-gradient(135deg, var(--kodlegal-bg-light) 0%, var(--kodlegal-bg-gray) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.02) 0%, rgba(46, 16, 101, 0.05) 100%);
    pointer-events: none;
}

.page-header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 3.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-header h1:hover::after {
    width: 140px;
}

/* News Container - Modern Background */
.news-container {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--kodlegal-bg-lighter) 0%, var(--kodlegal-bg-medium) 100%);
    min-height: 70vh;
    position: relative;
}

.news-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="news-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="0.5" fill="%23000" opacity="0.02"/><circle cx="60" cy="30" r="0.5" fill="%23000" opacity="0.02"/><circle cx="30" cy="70" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23news-grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* News Introduction */
.news-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.news-intro h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.news-intro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--kodlegal-primary);
    opacity: 0.7;
}

.news-intro p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--kodlegal-gray);
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Category Filter - Modern Design */
.category-filter {
    margin-bottom: 4rem;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.filter-button {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--kodlegal-gray);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.2rem;
    margin: 0 0.3rem 0.5rem 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 25px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 25px;
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-button:hover::before,
.filter-button.active::before {
    width: 100%;
}

.filter-button:hover,
.filter-button.active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 16, 101, 0.2);
}

/* News Grid - Enhanced Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* News Cards - Glassmorphism Design */
.news-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 420px;
    min-height: 520px;
    margin: 0 auto;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(46, 16, 101, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover::after {
    opacity: 1;
}

.news-card:hover, .news-card:active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 16, 101, 0.12);
    border-color: rgba(46, 16, 101, 0.2);
}

/* News Image - Enhanced */
.news-image {
    height: 250px;
    background: linear-gradient(135deg, var(--kodlegal-bg-light), var(--kodlegal-bg-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kodlegal-gray);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.1) 0%, transparent 50%, rgba(46, 16, 101, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover, .news-card:active .news-image::before {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.news-card:hover, .news-card:active .news-image img {
    transform: scale(1.05);
}

.news-image i {
    position: relative;
    z-index: 2;
}

/* News Content - Enhanced */
.news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* News Meta - Modern Design */
.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--kodlegal-gray);
    flex-wrap: wrap;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(46, 16, 101, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
}

.news-date i {
    color: var(--kodlegal-primary);
}

.news-category {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(46, 16, 101, 0.2);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.news-author i {
    color: var(--kodlegal-primary);
}

/* News Title and Content */
.news-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover, .news-card:active h3 {
    color: var(--kodlegal-primary);
}

.news-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--kodlegal-gray);
    line-height: 1.6;
    margin-bottom: auto;
    opacity: 0.9;
    flex-grow: 1;
    transition: opacity 0.3s ease;
}

.news-card:hover, .news-card:active p {
    opacity: 1;
}

/* News Link - Enhanced Button */
.news-card .news-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--kodlegal-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--kodlegal-primary);
    border-radius: 25px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card .news-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kodlegal-primary);
    border-radius: 25px;
    transition: width 0.3s ease;
    z-index: -1;
}

.news-card .news-link::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.news-card .news-link:hover::before {
    width: 100%;
}

.news-card .news-link:hover::after {
    transform: translateX(3px);
}

.news-card .news-link:hover, .news-link:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination - Modern Style */
.pagination {
    margin-top: 3rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--kodlegal-primary);
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link:active {
    background: var(--kodlegal-primary);
    color: white;
    border-color: var(--kodlegal-primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-color: var(--kodlegal-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .news-container {
        padding: 3rem 0;
    }
    
    .news-intro h2 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-card {
        max-width: 100%;
        min-height: 420px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .news-intro h2 {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        border-radius: 15px;
        min-height: 340px;
    }
    
    .news-image {
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .filter-button {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

