/* ========================================
   NEWS COMPONENT - Modern Design
   Sistema de notícias com estilo das boxes de Characters
   ======================================== */

/* News Image */
.news-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Featured Tag */
.featured-tag {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #78350f !important;
    border-color: #f59e0b !important;
}

/* News Component Container */
.news-component {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

/* News Header */
.news-component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fbbf24;
    flex-wrap: wrap;
    gap: 15px;
}

.news-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-icon-wrapper {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    padding: 10px;
    border: 2px solid #7c3aed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.news-header-title h3 {
    margin: 0;
    font-family: 'Verdana', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #7c2d12;
}

.news-header-title p {
    margin: 5px 0 0;
    font-family: 'Verdana', Arial, sans-serif;
    color: #92400e;
    font-size: 0.9rem;
}

.news-header-actions {
    display: flex;
    gap: 10px;
}

.news-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: 'Verdana', Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.news-filter-btn:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #7c2d12;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
    border-color: #7c3aed;
}

.news-filter-btn.active {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* News Grid */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* News Article */
.news-article {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.news-article:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-3px);
    border-color: #7c3aed;
}

.news-article.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Article Header */
.news-article-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    border-bottom: 2px solid #fde68a;
}

.news-article-header-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.news-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 6px;
    transition: all 0.3s ease;
}

.news-article:hover .news-category-icon {
    border-color: #7c3aed;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
}

.news-category-icon img {
    max-width: 100%;
    max-height: 100%;
}

.news-article-meta {
    flex: 1;
}

.news-article-date {
    font-size: 0.8rem;
    font-family: 'Verdana', Arial, sans-serif;
    color: #92400e;
    margin-bottom: 5px;
    font-weight: 600;
}

.news-article-title {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-family: 'Verdana', Arial, sans-serif;
    font-weight: bold;
    color: #7c2d12;
    line-height: 1.3;
}

.news-article-author {
    font-size: 0.85rem;
    font-family: 'Verdana', Arial, sans-serif;
    color: #92400e;
    font-style: italic;
}

/* Article Body */
.news-article-body {
    padding: 20px;
    background: linear-gradient(135deg, #fffef5 0%, #fefce8 100%);
}

.news-article-content {
    font-family: 'Verdana', Arial, sans-serif;
    color: #7c2d12;
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #fde68a;
    border-radius: 8px;
    min-height: 100px;
}

.news-article-content p {
    margin: 10px 0;
    color: #92400e;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

/* Article Footer */
.news-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #fde68a;
    flex-wrap: wrap;
    gap: 10px;
}

.news-article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    padding: 4px 12px;
    font-family: 'Verdana', Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #92400e;
    border: 1px solid #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-article-actions {
    display: flex;
    gap: 10px;
}

.news-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: 'Verdana', Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}

.news-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    border-color: #6d28d9;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #fbbf24;
}

.news-pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: 'Verdana', Arial, sans-serif;
    font-weight: bold;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.news-pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #7c2d12;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
    border-color: #7c3aed;
}

.news-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-pagination-info {
    color: #92400e;
    font-family: 'Verdana', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #92400e;
}

.news-empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.news-empty-state h4 {
    margin: 0 0 10px;
    font-family: 'Verdana', Arial, sans-serif;
    color: #7c2d12;
    font-size: 1.2rem;
    font-weight: bold;
}

.news-empty-state p {
    margin: 0;
    font-family: 'Verdana', Arial, sans-serif;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-component-header {
        flex-direction: column;
        align-items: flex-start;
    }
  
    .news-header-actions {
        width: 100%;
    }
    
    .news-filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .news-article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
