/* ArenaTV News - Layout baseado no News Magazine X */

/* ===== DARK MODE ===== */
body.dark-mode {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .site-main {
    background: #1e1e1e;
}

body.dark-mode .latest-news-section {
    background: #2a2a2a;
}

body.dark-mode .category-section {
    background: #1e1e1e;
}

body.dark-mode .category-section.dark {
    background: #2a2a2a;
}

body.dark-mode .article-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .article-card__title,
body.dark-mode .article-card__title a {
    color: #e0e0e0;
}

body.dark-mode .article-card__excerpt {
    color: #aaa;
}

body.dark-mode .article-card__meta {
    color: #888;
    border-top-color: #333;
}

body.dark-mode .category-featured__title {
    color: #e0e0e0;
}

body.dark-mode .category-featured__excerpt {
    color: #aaa;
}

body.dark-mode .category-article__title {
    color: #e0e0e0;
}

body.dark-mode .category-article__date {
    color: #888;
}

body.dark-mode .category-article {
    border-bottom-color: #333;
}

body.dark-mode .section-header__line {
    background: var(--secondary);
}

body.dark-mode .archive-header {
    background: var(--secondary);
}

body.dark-mode .single-post__title {
    color: #e0e0e0;
}

body.dark-mode .single-post__content {
    color: #ccc;
}

body.dark-mode .single-post__content p {
    color: #ccc;
}

body.dark-mode .site-footer {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.dark-mode .footer-column h3 {
    color: #e0e0e0;
}

body.dark-mode .footer-categories a {
    color: #ccc;
}

body.dark-mode .footer-post__title {
    color: #e0e0e0;
}

body.dark-mode .footer-bottom {
    border-top-color: #333;
}


/* ===== HERO SECTION ===== */
.hero-section {
    padding: 1.5rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 480px;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 3fr 2fr;
        min-height: 480px;
    }
}

/* Hero Featured (large post) */
.hero-featured {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 0.25rem;
    display: block;
}

@media (min-width: 768px) {
    .hero-featured {
        min-height: 100%;
        grid-row: 1 / 3;
    }
}

.hero-featured img,
.hero-featured .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.7s ease;
}

.hero-featured:hover img,
.hero-featured:hover .placeholder-img {
    transform: scale(1.05);
}

.hero-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.hero-featured__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.hero-featured__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hero-featured__title {
        font-size: 2rem;
    }
}

.hero-featured__excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-featured__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-featured__meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Hero Stack (secondary posts on right side) - grid 2x2 quadrado */
.hero-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 100%;
}

.stack-article {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    display: block;
    aspect-ratio: 1 / 1;
}

.stack-article img,
.stack-article .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.stack-article:hover img,
.stack-article:hover .placeholder-img {
    transform: scale(1.08);
}

.stack-article__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.stack-article__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 2;
}

.stack-article__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .stack-article__title {
        font-size: 1.1rem;
    }
}

.stack-article__date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* ===== CATEGORY BADGE ===== */
.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

/* ===== CATEGORY NAVIGATION GRID ===== */
.categories-nav {
    padding: 2rem 0;
}

.categories-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .categories-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-nav-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.category-nav-card img,
.category-nav-card .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-nav-card:hover img,
.category-nav-card:hover .placeholder-img {
    transform: scale(1.12);
}

.category-nav-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary);
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-nav-card:hover::after {
    transform: scaleX(1);
}

.category-nav-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.category-nav-card__name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.category-nav-card:hover .category-nav-card__name {
    text-shadow: 0 2px 16px rgba(242, 101, 34, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .category-nav-card__name {
        font-size: 1.65rem;
    }
}

@media (min-width: 1024px) {
    .category-nav-card__name {
        font-size: 1.8rem;
    }
}

.category-nav-card__count {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.3rem;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.category-nav-card:hover .category-nav-card__count {
    color: var(--secondary);
}

/* ===== SECTION HEADER (Category title bar) ===== */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--secondary);
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
}

.section-title::after {
    display: none;
}

.section-header__line {
    flex: 1;
    height: 2px;
    background: var(--secondary);
}

.view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #d9541a;
}

/* ===== LATEST NEWS SECTION ===== */
.latest-news-section {
    padding: 2rem 0;
    background: #fff;
}

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

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== ARTICLE CARD ===== */
.article-card {
    background: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-card__image img,
.article-card__image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__image img,
.article-card:hover .article-card__image .placeholder-img {
    transform: scale(1.08);
}

.article-card__content {
    padding: 1rem;
}

.article-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-card__title {
    color: var(--secondary);
}

.article-card__excerpt {
    font-size: 0.85rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.75rem;
    color: #999;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    padding: 2rem 0;
}

.category-section.dark {
    background: #f5f5f5;
}

.category-section.dark .section-title {
    color: #fff;
}

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

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Category Featured (large left post) */
.category-featured {
    position: relative;
    display: block;
    border-radius: 0.25rem;
    overflow: hidden;
}

.category-featured__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.category-featured img,
.category-featured .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-featured:hover img,
.category-featured:hover .placeholder-img {
    transform: scale(1.05);
}

.category-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.category-featured__content {
    padding: 1rem 0;
}

.category-featured__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-featured:hover .category-featured__title {
    color: var(--secondary);
}

.category-featured__excerpt {
    font-size: 0.85rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Category Articles (right side list) */
.category-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-article {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.category-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-article__image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.category-article__image img,
.category-article__image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-article:hover .category-article__image img,
.category-article:hover .category-article__image .placeholder-img {
    transform: scale(1.1);
}

.category-article__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-article__category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

.category-article__title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.category-section.dark .category-article__title {
    color: #1a1a1a;
}

.category-article:hover .category-article__title {
    color: var(--secondary);
}

.category-article__date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.category-article__excerpt {
    display: none;
}

/* ===== PLACEHOLDER IMAGE ===== */
.placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-img.tech {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.placeholder-img.ia {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.placeholder-img.games {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.placeholder-img.turismo {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.placeholder-img.esportes {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.placeholder-img.cultura {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.placeholder-img.economia {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.placeholder-img.negocios {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.placeholder-img.default {
    background: linear-gradient(135deg, #f26522, #e55a1b);
}