.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* layout com sidebar */
.news-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.news-sidebar {
    position: sticky;
    top: 6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
}

.sidebar-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.date-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-filter {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.date-filter:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--blue);
    color: var(--text-primary);
}

.date-filter.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--blue);
    color: var(--blue);
    font-weight: 600;
}

/* filtros de categoria */
.news-category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.category-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.2);
}

.category-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
    border-color: var(--blue);
    font-weight: 700;
}

.crypto-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.crypto-filters::-webkit-scrollbar {
    height: 6px;
}

.crypto-filters::-webkit-scrollbar-track {
    background: transparent;
}

.crypto-filters::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
}

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

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

/* card de noticia importante */
.news-card.importante {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.news-card.importante:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
}

.news-card.importante::before {
    content: '⚠ IMPORTANTE';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* badge de tipo de noticia */
.news-type-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-image {
    width: 300px;
    min-width: 300px;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image-placeholder {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

.news-content {
    flex: 1;
    padding: 2rem;
    padding-left: 0;
    display: flex;
    flex-direction: column;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-source {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--purple);
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.news-symbols {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.symbol-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--blue);
}

.news-summary {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-summary p {
    margin: 0;
}

.news-importance {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--blue);
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.news-importance strong {
    color: var(--blue);
    font-weight: 700;
    margin-right: 0.35rem;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-author {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
}

.news-link:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .news-category-filters {
        flex-direction: column;
        width: 100%;
    }

    .category-btn {
        width: 100%;
        text-align: center;
    }

    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-sidebar {
        position: static;
    }

    .news-card {
        flex-direction: column;
        gap: 0;
    }

    .news-card.importante::before {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }

    .news-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.25rem;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
