/* ARQUIVO: public/css/style_Pista.css */
/* PÁGINA PISTA & DRIFT - ESTILOS */

/* ============================================ */
/* FUNDO DINÂMICO - MARCA REGISTRADA DO CAAC */
/* ============================================ */

.pista-body {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.85)), 
                url('/public/img/fundo.jpg');
    background-size: cover;
    background-position: 50% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    transition: background-position 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.pista-body.bg-street-focus {
    background-position: 15% center !important;
}

body.pista-body.bg-offroad-focus {
    background-position: 85% center !important;
}

/* ============================================ */
/* CONTAINER E UTILITÁRIOS */
/* ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-tag {
    display: inline-block;
    background: rgba(255, 69, 0, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #aaa;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.pista-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -70px; /* Compensa o padding do main */
    padding-top: 70px;
}

.pista-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.pista-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.hero-title {
    margin-bottom: 20px;
}

.title-small {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
}

.title-large {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--street-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    display: inline-block;
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    display: inline-block;
}

.btn-secondary:active {
    background: rgba(255,255,255,0.1);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.hero-scroll span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
}

.hero-scroll i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================ */
/* SOBRE A PISTA */
/* ============================================ */

.pista-sobre {
    padding: 80px 0;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sobre-texto h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.sobre-texto p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
}

.caracteristicas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.carac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.carac-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.carac-item span {
    font-size: 0.85rem;
}

.sobre-imagem img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============================================ */
/* MODALIDADES */
/* ============================================ */

.pista-modalidades {
    padding: 80px 0;
    background: rgba(0,0,0,0.3);
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.modalidade-card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s;
}

.modalidade-card:active {
    transform: translateY(-5px);
}

.card-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modalidade-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.modalidade-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #333;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
}

.card-badge.active {
    background: rgba(255, 69, 0, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* ============================================ */
/* GALERIA */
/* ============================================ */

.pista-galeria {
    padding: 80px 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.galeria-item:active img {
    transform: scale(1.05);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
}

.galeria-item:active .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    font-size: 2rem;
    color: #fff;
}

/* ============================================ */
/* REGULAMENTO */
/* ============================================ */

.pista-regulamento {
    padding: 80px 0;
    background: rgba(0,0,0,0.3);
}

.regulamento-header {
    text-align: center;
    margin-bottom: 50px;
}

.regulamento-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.regulamento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.regulamento-item {
    text-align: center;
    padding: 25px;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 16px;
}

.regulamento-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.regulamento-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.regulamento-item p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
}

.regulamento-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-download {
    background: transparent;
    border: 1px solid #444;
    padding: 12px 30px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-download:active {
    background: rgba(255,255,255,0.1);
}

/* ============================================ */
/* AGENDAMENTO */
/* ============================================ */

.pista-agendamento {
    padding: 80px 0 100px;
}

.agendamento-card {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(255,69,0,0.3);
}

.agendamento-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.agendamento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.agendamento-card p {
    color: #aaa;
    margin-bottom: 30px;
}

.agendamento-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:active {
    transform: scale(0.96);
}

.agendamento-info {
    font-size: 0.7rem;
    color: #666;
    margin-top: 20px;
}

/* ============================================ */
/* MODAL GALERIA */
/* ============================================ */

.modal-galeria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-galeria img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ============================================ */
/* RESPONSIVO */
/* ============================================ */

@media (max-width: 768px) {
    .title-large {
        font-size: 2.5rem;
    }
    
    .sobre-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .caracteristicas {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .agendamento-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary, .btn-whatsapp {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .modal-prev, .modal-next {
        font-size: 1.2rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .title-small {
        font-size: 0.9rem;
    }
    
    .title-large {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .agendamento-card {
        padding: 30px 20px;
    }
    
    .agendamento-card h3 {
        font-size: 1.3rem;
    }
}