/*
Theme Name: F1 THE GRID THEME
Author: RUDNEI LEMOS DE OLIVEIRA
Description: TEMPLATE F1 THE GRID 100% ORIGINAL COM FUNCIONALIDADES WORDPRESS
Version: 2.1
*/


/* ─── VARIÁVEIS ──────────────────────────────────────────────────────────────
   CORREÇÃO: --f1-dark renomeado para --f1-bg para evitar confusão
   (o valor #FFFAFA é quase branco — não é escuro).
   CORREÇÃO: color do body corrigido de #FFFFFF (branco = invisível em fundo claro)
   para #111111 (quase preto). Cada seção escura tem seu próprio color: #fff.
*/
:root {
    --f1-red:  #E10600;
    --f1-bg:   #FFFAFA;  /* fundo geral — quase branco */
    --f1-gray: #000000;
    --grid-red: #FF1E1E;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--f1-bg);
    color: #111111; /* CORREÇÃO: era #FFFFFF — texto branco em fundo branco = invisível */
    overflow-x: hidden;
}

.font-f1 {
    font-family: 'Orbitron', sans-serif;
}

.font-grid {
    font-family: 'Chakra Petch', sans-serif;
}


/* ─── LINHAS DE VELOCIDADE ────────────────────────────────────────────────── */
.speed-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: none;
    opacity: 0.1;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(225, 6, 0, 0.1) 50px,
        rgba(225, 6, 0, 0.1) 51px
    );
    animation: speedMove 20s linear infinite;
}

@keyframes speedMove {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}


/* ─── GLOW NOS TÍTULOS ───────────────────────────────────────────────────── */
.glow-text {
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.5), 0 0 40px rgba(225, 6, 0, 0.3);
}


/* ─── CARDS COM EFEITO 3D ────────────────────────────────────────────────── */
.f1-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.f1-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--f1-red);
    box-shadow: 0 20px 40px rgba(225, 6, 0, 0.3);
}


/* ─── BOTÃO ESTILO F1 ────────────────────────────────────────────────────── */
.btn-f1 {
    background: linear-gradient(90deg, var(--f1-red) 0%, #ff2d2d 100%);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: all 0.3s;
}

.btn-f1:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(225, 6, 0, 0.6);
}


/* ─── NEWS CARDS ─────────────────────────────────────────────────────────── */
.news-card {
    transition: all 0.3s ease;
    border: 1px solid #333;
    background: var(--f1-gray);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--f1-red);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.2);
}

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

.card-image {
    transition: transform 0.5s ease;
}


/* ─── HERO BREAKING NEWS ─────────────────────────────────────────────────── */
.hero-breaking {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}


/* ─── GRADIENT OVERLAY ───────────────────────────────────────────────────── */
.gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}


/* ─── COUNTER ────────────────────────────────────────────────────────────── */
.counter {
    font-variant-numeric: tabular-nums;
}


/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--f1-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--f1-red);
    border-radius: 5px;
}


/* ─── STICKY HEADER ──────────────────────────────────────────────────────── */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.95);
}


/* ─── TEXT TRUNCATION ────────────────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── PARTÍCULAS ANIMADAS ────────────────────────────────────────────────── */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--f1-red);
    border-radius: 50%;
    animation: float 10s infinite;
}

@keyframes float {
    0%,  100% { transform: translateY(0) translateX(0);       opacity: 0; }
    10%        { opacity: 1; }
    90%        { opacity: 1; }
    100%       { transform: translateY(-100vh) translateX(100px); }
}


/* ─── TABELA DE CLASSIFICAÇÃO ────────────────────────────────────────────── */
.standings-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.standings-row:hover {
    background: rgba(225, 6, 0, 0.1);
    transform: scale(1.01);
}

.team-color {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}


/* ─── BREAKING NEWS BADGE ────────────────────────────────────────────────── */
.tag-breaking {
    background: var(--f1-red);
    color: white;
    animation: pulse-red 2s infinite;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

@keyframes pulse-red {
    0%,  100% { opacity: 1; }
    50%        { opacity: 0.8; }
}


/* ─── GRID VERTICAL DE NOTÍCIAS ──────────────────────────────────────────── */
.vertical-news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vertical-news-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vertical-news-item:hover {
    border-color: var(--f1-red);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(225, 6, 0, 0.2);
}

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


/* ─── BOTÃO VOLTAR AO TOPO ───────────────────────────────────────────────────
   CORREÇÃO: alinhado com os inline styles do footer.php.
   - display: none → flex (controlado por JS)
   - position: fixed com z-index: 9999 (acima de tudo)
   - border-radius: 4px (quadrado com cantos suaves, não círculo)
   - padding: 0 (ícone SVG centralizado via flexbox)
   - box-shadow vermelho para identidade visual
*/
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 4px;
    background-color: var(--f1-red);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#scrollToTopBtn:hover {
    background-color: #b91c1c;
    transform: scale(1.1);
}


/* ─── ESTILO SINGLE PAGE ─────────────────────────────────────────────────── */
.single-post-header {
    position: relative;
    height: 80vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
}

.single-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.post-content-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content-area p { margin-bottom: 1.5rem; color: #000000; }
.post-meta            { font-size: 0.9rem; color: #9ca3af; margin-bottom: 1rem; }


/* ─── PAGINAÇÃO ──────────────────────────────────────────────────────────── */
.pagination-wrapper .page-numbers {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-wrapper .page-numbers:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
}

.pagination-wrapper .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    cursor: default;
    font-weight: bold;
    color: #666;
}


/* ─── CORES DOS TÍTULOS NOS CARDS VERTICAIS ──────────────────────────────── */
.vertical-news-item h3 {
    color: #000000;
}

.vertical-news-item:hover h3 {
    color: #E10600 !important;
}
