/* ============================================
   ArkaGaming.cl — News Page Styles
   ============================================ */

/* ===== NEWS HERO ===== */
.news-hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(229, 9, 20, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        var(--bg-primary);
}

.news-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.news-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin: 16px 0 12px;
}

.news-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-filters::-webkit-scrollbar { height: 0; }

.category-filters-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cat-filter {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.cat-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.cat-filter.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===== NEWS GRID ===== */
.news-page-section {
    padding: 60px 0 100px;
    background: var(--bg-primary);
}

.news-page-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-loading {
    grid-column: span 3;
    padding: 24px;
}

/* ===== NEWS CARD (reused from main, with tweaks) ===== */
.news-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-page-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.news-page-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-page-card-image .news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-page-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-page-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-page-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-page-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.news-page-card:hover .news-page-card-link {
    gap: 10px;
}

/* ===== PAGINATION ===== */
.pagination {
    max-width: var(--container-max);
    margin: 40px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

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

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== EMPTY STATE ===== */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.news-empty h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ===== ARTICLE PAGE ===== */
.article-page {
    min-height: 100vh;
}

.article-hero {
    padding: 140px 24px 60px;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.article-back:hover {
    color: var(--accent-primary);
    gap: 12px;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-primary);
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta-dot { color: var(--text-muted); }

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin: 32px 0 16px;
    line-height: 1.3;
}

.article-content h1 { font-size: 1.8rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.2rem; }

.article-content p {
    margin: 16px 0;
}

.article-content ul {
    padding-left: 24px;
    margin: 16px 0;
}

.article-content li {
    margin: 8px 0;
}

.article-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.article-content em {
    color: var(--text-primary);
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .news-page-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-page-grid {
        grid-template-columns: 1fr;
    }

    .news-loading {
        grid-column: span 1;
    }

    .category-filters-inner {
        justify-content: flex-start;
    }

    .article-meta {
        font-size: 0.8rem;
    }
}
