/* ===================================
   NEWS PAGE STYLES
   =================================== */

/* Hero Section */
.news-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--background-darker) 0%, var(--primary-dark) 100%);
    text-align: center;
    opacity: 1 !important;
}

.news-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.news-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filters Section */
.news-filters {
    background: var(--background-dark);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 168, 232, 0.2);
    position: sticky;
    top: 70px;
    z-index: 99;
    opacity: 1 !important;
}

.filters-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 31, 53, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: rgba(0, 168, 232, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    font-size: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 0.9rem 1.25rem 0.9rem 3rem;
    background: rgba(0, 31, 53, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.search-bar input::placeholder {
    color: var(--text-light);
}

/* News Grid Section */
.news-grid-section {
    padding: 4rem 0;
    background: var(--background-darker);
    min-height: 60vh;
    opacity: 1 !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 1 !important;
}

/* News Card */
.news-card {
    background: rgba(0, 31, 53, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    display: block !important;
}

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

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

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Container para múltiplas categorias */
.news-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.news-card-category {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
    white-space: nowrap;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-card-date i {
    font-size: 0.8rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 168, 232, 0.2);
}

.news-card-author {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-author i {
    color: var(--accent-cyan);
}

.news-card-link {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-link {
    gap: 0.75rem;
}

.news-card-link i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-link i {
    transform: translateX(4px);
}

/* Badge Destaque */
.news-card.destaque {
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.news-card.destaque .news-card-content {
    position: relative;
}

.news-card.destaque .news-card-content::before {
    content: '🔥';
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results i {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Hidden State */
.hidden {
    display: none !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 31, 53, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.pagination button:hover:not(:disabled) {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.pagination button.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-color: var(--accent-cyan);
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===================================
   ARTICLE DETAIL PAGE
   =================================== */
.article-media {
    width: 100%;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-media img,
.article-media video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 2rem 0 1rem;
    background: var(--background-dark);
    border-bottom: 1px solid rgba(0, 168, 232, 0.1);
    margin-top: 70px;
    opacity: 1 !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-cyan);
    transition: color 0.3s ease;
}

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

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb span:not(.separator) {
    color: var(--text-light);
}

/* Article Container */
.article-container {
    background: var(--background-darker);
    padding: 3rem 0 5rem;
    opacity: 1 !important;
}

.article-container .container {
    max-width: 900px;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    opacity: 1 !important;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.article-date {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-author {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author i {
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* Article Image */
.article-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    opacity: 1 !important;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1 !important;
}

/* Article Body */
.article-body {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 1 !important;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text-white);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-body h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.article-body h4 {
    font-size: 1.2rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: var(--text-white);
}

.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body ul {
    font-size: smaller;
}

.article-body li {
    line-height: 3;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: rgba(0, 168, 232, 0.05);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-light);
}

.article-body code {
    background: rgba(0, 168, 232, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

.article-body pre {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: rgba(0, 31, 53, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 168, 232, 0.2);
}

.article-body th {
    background: rgba(0, 168, 232, 0.2);
    font-weight: 600;
    color: var(--text-white);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    opacity: 1 !important;
    display: block !important;
}

.article-body hr {
    border: none;
    border-top: 1px solid rgba(0, 168, 232, 0.2);
    margin: 3rem 0;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 168, 232, 0.2);
    opacity: 1 !important;
}

.article-share {
    margin-bottom: 3rem;
}

.article-share h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 31, 53, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.article-cta {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 232, 0.1));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
    margin-bottom: 3rem;
}

.article-cta h3 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.back-to-news {
    text-align: center;
}

.btn-back {
    padding: 0.9rem 1.8rem;
    background: rgba(0, 31, 53, 0.6);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--accent-cyan);
    transform: translateX(-4px);
}

/* Related News */
.related-news {
    margin-top: 5rem;
    opacity: 1 !important;
}

.related-news h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 6rem 0 3rem;
    }

    .news-filters {
        top: 60px;
        padding: 1.5rem 0;
    }

    .filters-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .filters-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .filters-wrapper::-webkit-scrollbar-thumb {
        background: var(--accent-cyan);
        border-radius: 2px;
    }

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

    .article-title {
        font-size: 1.8rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}
