/*
 * public/css/style_Welcome.css
 * Design da Landing Page (Vitrine) - Foco em Impacto e Competição
*/

/* --- 1. HERO SECTION (O Impacto) --- */
.hero-section {
    height: 80vh; /* Ocupa 80% da altura da tela */
    background-color: #000;
    /* Substitua 'banner_home.jpg' por uma imagem de carro INSANA em alta resolução */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('/public/images/banner_home.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-title {
    font-size: 2.5em;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-title span { color: #d35400; /* Laranja Racing */ }

.hero-subtitle {
    font-size: 1.1em;
    color: #ddd;
    max-width: 600px;
}

/* CONTAINER FINAL DE CHAMADA PARA AÇÃO */
.final-cta-section {
    background: #1a1a1a;
    padding: 30px 20px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center; /* Centraliza os botões */
    margin: 0 auto; 
}

.btn-hero {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s;
}
.btn-hero.primary { background: #28a745; color: #fff; box-shadow: 0 0 15px rgba(40, 167, 69, 0.5); }
.btn-hero.secondary { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-hero:hover { transform: scale(1.05); }


/* --- 2. O PÓDIO (Top Carros/Pilotos) --- */
.podium-section {
    margin-top: -100px; 
    position: relative;
    z-index: 10; 
    
    background: #1a1a1a;
    padding: 40px 20px;
    padding-top: 100px; 
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
    
    color: #fff;
}
.section-header-dark {
    text-align: center;
    margin-bottom: 30px;
}
.section-header-dark h2 { font-size: 1.8em; margin-bottom: 5px; }
.section-header-dark p { color: #777; font-size: 0.9em; }

.top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px; 
}

/* Cards Escuros - BASE GERAL */
.top-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden; 
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}
.top-card:hover { transform: translateY(-5px); border-color: #d35400; }

/* --- O Palco do Carro --- */
.top-card-img-container {
    position: relative; 
    width: 100%;
    height: 180px; 
    background-color: #1a1a1a; 
    overflow: hidden; 
    border-bottom: 1px solid #333;
}

/* BADGE DE INFO DO CARRO */
.car-info-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid #d35400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 0 10px rgba(211, 84, 0, 0.3);
}
.badge-model {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}
.badge-score {
    font-size: 0.9rem;
    font-weight: bold;
    color: #f1c40f;
    margin-top: 2px;
}
.badge-score i {
    color: #f1c40f;
    margin-right: 3px;
}

/* FOTO DO PILOTO DENTRO DO CARD DO CARRO */
.pilot-photo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db; 
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* A Base (Fundo do Palco) */
.top-card-img-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; 
    /* Caminho para a imagem da base */
    background-image: url('/public/images/garage_base.jpg');
    background-size: cover;
    background-position: center bottom;
    z-index: 1; 
    opacity: 0.8; 
}

/* O Carro (Frente) */
.top-card-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center bottom; 
    z-index: 2; 
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); 
    transition: transform 0.3s ease;
}

/* Efeito de Hover no Card Inteiro */
.top-card:hover .top-card-img {
    transform: scale(1.05) translateY(-5px); 
}

.top-card-info {
    padding: 15px;
    text-align: center;
    background: #2a2a2a;
    z-index: 3;
}
.top-card-name { display: block; font-weight: bold; font-size: 1em; margin-bottom: 5px; }
.top-card-score { display: block; font-size: 0.9em; color: #f1c40f; font-weight: bold; }


/* --- ESTILOS PILOTO (SINCRONIZADO COM CARRO) --- */

.top-card-piloto {
    background: #2a2a2a; 
    border: 1px solid #333; 
    padding: 0; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.top-card-piloto:hover {
    transform: translateY(-5px); 
    border-color: #3498db; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(52, 152, 219, 0.5);
}

/* Container da imagem do piloto para simular o palco */
.pilot-aura-wrapper {
    position: relative; 
    width: 100%;
    height: 180px; 
    overflow: hidden;
    /* Removido o background-image do CSS, pois é injetado inline no PHP */
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* NOVO: CAMADA DE FUNDO ESCURA (Pedestal/Palco) para o Carro do Piloto */
.pilot-aura-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ocupa a altura toda */
    
    /* Cria o Palco / Sombra */
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 -50px 40px rgba(0, 0, 0, 0.9); /* Sombra pesada na base */
    filter: blur(2px) brightness(0.6);
    z-index: 1;
}

/* Imagem do Piloto (Avatar) - Fica na frente */
.pilot-aura-wrapper img {
    width: 100px !important; 
    height: 100px !important; 
    margin: 0 !important;
    border-radius: 50% !important; 
    object-fit: cover;
    border: 3px solid #3498db !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
    transition: transform 0.3s ease;
    z-index: 2; 
}

/* Informações do Piloto (Base do Card) */
.top-card-piloto .top-card-info {
    width: 100%;
    padding: 15px;
    background: #2a2a2a;
    text-align: center;
}
.top-card-piloto .top-card-score {
    color: #3498db; /* PD em Azul */
}


/* GRID DE BADGES (Conquistas) */
.pilot-badges-grid {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #333;
}
.badge-item {
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}
.badge-item i {
    color: #28a745; /* Carro */
    font-size: 1em;
}
/* Cores específicas para diferenciar os ícones */
.badge-item:nth-child(2) i { color: #d35400; } /* Eventos */
.badge-item:nth-child(3) i { color: #3498db; } /* Posts */
.badge-item:nth-child(4) i { color: #f1c40f; } /* Seguidores */


/* --- 3. A ECONOMIA (Explicação Visual) --- */
.economy-section {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
}
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.feature-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}
.feature-icon { font-size: 2.5em; margin-bottom: 10px; display: block; }
.feature-item h3 { color: #333; margin-bottom: 10px; }
.feature-item p { color: #666; font-size: 0.9em; line-height: 1.5; }


/* --- 4. FEED RECENTE (Fundo Branco) --- */
.feed-preview-section {
    background: #f0f2f5;
    padding: 40px 20px;
}
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.feed-card-preview {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Mobile Adjustments */
@media (min-width: 769px) {
    .hero-title { font-size: 4em; }
}