/* Innovative News Hub Styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #3d8b40;
    --primary-light: #E8F5E9;
    --accent-color: #8BC34A;
    --text-dark: #2E3D32;
    --text-light: #5A6B5E;
    --background: #F9FFFA;
    --sidebar-bg: #FFFFFF;
    --content-bg: #F5F9F6;
    --border-color: #E0E6E1;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.innovative-news-container {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--background);
    min-height: 100vh;
}

.innovative-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    margin-top: 120px;
}

.innovative-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.innovative-title span {
    font-weight: 300;
    opacity: 0.9;
}

.innovative-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
}

.innovative-layout {
    display: flex;
    max-width: 1700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    gap: 2rem;
}

/* Filter Sidebar Styles */
.innovative-filter-sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-toggle {
    display: none;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.date-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    padding: 0.75rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
    border-radius: 8px 0 0 8px;
    font-size: 0.875rem;
}

.input-field input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    background: white;
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-item input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-item input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input:checked + .checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.filter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-submit:hover {
    background: var(--primary-dark);
}

.filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.news-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Main Content Styles */
.innovative-content-main {
    flex: 1;
    background: var(--content-bg);
    border-radius: 16px;
    padding: 1.5rem;
}

.content-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.view-options {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.view-option {
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
}

.view-option.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Grid View Styles */
.innovative-news-display.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-view .news-entity {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.grid-view .news-entity:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* List View Styles */
.innovative-news-display.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-view .news-entity {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    height: 180px;
}

.list-view .news-entity:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.list-view .entity-visual {
    width: 240px;
    height: 100%;
    flex-shrink: 0;
}

.list-view .entity-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-view .entity-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.list-view .entity-description {
    margin-bottom: 0.75rem;
    flex-grow: 0;
}

/* Common Entity Styles */
.entity-visual {
    position: relative;
    height: 160px;
}

.visual-container {
    width: 100%;
    height: 100%;
}

.visual-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.entity-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.date-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.entity-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-badge {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.entity-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.entity-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.entity-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-read {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-read:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.action-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.action-source:hover {
    color: var(--primary-color);
}

.no-entities {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.no-entities-icon {
    margin-bottom: 1.5rem;
    color: #D1D9D2;
}

.no-entities h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-entities p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.innovative-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .innovative-layout {
        flex-direction: column;
    }
    
    .innovative-filter-sidebar {
        width: 100%;
        position: static;
    }
    
    .filter-header {
        cursor: pointer;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .innovative-filter-form {
        display: none;
    }
    
    .innovative-filter-form.active {
        display: block;
    }
    
    .sidebar-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .innovative-header {
        padding: 1.5rem 1rem;
    }
    
    .innovative-title {
        font-size: 2.25rem;
    }
    
    .innovative-layout {
        padding: 1.5rem 1rem;
    }
    
    .innovative-news-display.grid-view {
        grid-template-columns: 1fr;
    }
    
    .innovative-content-main {
        padding: 1.25rem;
    }
    
    .list-view .news-entity {
        flex-direction: column;
        height: auto;
    }
    
    .list-view .entity-visual {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .innovative-title {
        font-size: 2rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .entity-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}