/*
 * 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;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.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 {
    background: #1a1a1a;
    padding: 40px 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(200px, 1fr)); /* Aumentei um pouco o minmax para caber o carro */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards Escuros */
.top-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden; /* Mantém tudo dentro das bordas arredondadas */
    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 (NOVO CÓDIGO INSERIDO) --- */
.top-card-img-container {
    position: relative; /* Cria um contexto de posicionamento */
    width: 100%;
    height: 180px; /* Altura fixa para o palco */
    background-color: #1a1a1a; /* Fundo escuro de segurança */
    overflow: hidden; /* Corta o que vazar */
    border-bottom: 1px solid #333;
}

/* A Base (Fundo do Palco) */
.top-card-img-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* A base ocupa os 80% inferiores */
    /* Caminho para a imagem da base */
    background-image: url('/public/images/garage_base.jpg');
    background-size: cover;
    background-position: center bottom;
    z-index: 1; /* Fica atrás */
    opacity: 0.8; /* Um pouco mais escuro para destacar o carro */
}

/* O Carro (Frente) */
.top-card-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que o carro inteiro apareça sem cortar */
    object-position: center bottom; /* Alinha o carro na base */
    z-index: 2; /* Fica na frente */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); /* Sombra realista no chão */
    transition: transform 0.3s ease;
}

/* Efeito de Hover no Card Inteiro */
.top-card:hover .top-card-img {
    transform: scale(1.05) translateY(-5px); /* O carro "salta" um pouquinho */
}
/* --- FIM DO BLOCO DO PALCO --- */

.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; }


/* --- 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; }
    /* Altura da imagem removida daqui pois agora é controlada pelo container .top-card-img-container */
}