/*
 * Közös oldalstílusok (index.php, gallery.php) – korábban az index.php <style> blokkjában voltak.
 * FONTOS: a tailwind.css ELŐTT kell betölteni, különben pl. a .glass-card keretszíne felülírná
 * a Tailwind border-t-… osztályait.
 * A képútvonalak ehhez a fájlhoz képest relatívak (assets/css/ → ../../images/).
 */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #070e1b;
    color: #f1f5f9;
}

/* Hero background using uploaded structured imagery */
.rally-hero-bg {
    background-image: linear-gradient(180deg, rgba(7, 14, 27, 0.45) 0%, rgba(7, 14, 27, 0.90) 80%, #070e1b 100%), 
                      url('../../images/hatter.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Section backgrounds with subtle racing grid pattern */
.section-racing-bg {
    background-image: radial-gradient(rgba(30, 96, 255, 0.12) 1px, transparent 1px), 
                      linear-gradient(180deg, #070e1b 0%, #0b1730 50%, #070e1b 100%);
    background-size: 20px 20px, 100% 100%;
}

/* Glassmorphism containers */
.glass-card {
    background: rgba(10, 21, 45, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 30, 39, 0.5);
    box-shadow: 0 12px 40px 0 rgba(255, 30, 39, 0.25);
}

.glass-card-red {
    background: rgba(204, 0, 8, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 30, 39, 0.4);
}

/* Kapcsolati űrlap állapotai */
#contact-form [aria-invalid="true"] { border-color: #ef4444 !important; box-shadow: 0 0 0 1px #ef4444; }
#contact-message { display: none; border-radius: .75rem; padding: .875rem 1rem; line-height: 1.5; border: 1px solid; }
#contact-message.fg-ok   { display: block; background: rgba(22,163,74,.15); border-color: rgba(34,197,94,.5); color: #bbf7d0; }
#contact-message.fg-hiba { display: block; background: rgba(220,38,38,.15); border-color: rgba(239,68,68,.5); color: #fecaca; }
#contact-message ul { margin: .5rem 0 0 1.1rem; list-style: disc; }
.fg-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #070e1b;
}
::-webkit-scrollbar-thumb {
    background: #ff1e27;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffd000;
}

/* Galéria – képaláírás a PhotoSwipe képnézegetőben */
.pswp__felirat {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: min(90vw, 760px);
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(7, 14, 27, .78);
    color: #f1f5f9;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
}
.pswp__felirat[hidden] { display: none; }
