@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Bieg na Szóstkę - Custom CSS styles */

/* Font face configuration for Dax Pro Wide Bold Italic */
/* Uncomment and update paths when font files are available */
/*
@font-face {
    font-family: 'Dax Pro';
    src: url('./fonts/DaxPro-WideBoldItalic.woff2') format('woff2'),
         url('./fonts/DaxPro-WideBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}
*/

/* Fallback for Dax Pro until provided - using a thick italic font aesthetic */
@supports not (font-family: "Dax Pro") {
    .font-dax {
        font-family: 'Poppins', sans-serif;
        font-weight: 900 !important;
        /* Extra bold */
        font-style: italic !important;
        letter-spacing: -0.02em;
    }
}

/* Hero entrance animations */
@keyframes heroFadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeSlideLeft {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes heroPulseYellow {
    0%, 100% { text-shadow: 0 0 0px rgba(255,220,4,0); }
    50%       { text-shadow: 0 0 24px rgba(255,220,4,0.6); }
}

.hero-line-1 {
    opacity: 0;
    animation: heroFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-line-2 {
    opacity: 0;
    animation: heroFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.hero-line-3 {
    opacity: 0;
    animation: heroFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards,
               heroPulseYellow 2.5s ease-in-out 1.4s infinite;
}
.hero-countdown {
    opacity: 0;
    animation: heroFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}
.hero-cta {
    opacity: 0;
    animation: heroFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}
.hero-box {
    opacity: 0;
    animation: heroFadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;
}
.hero-plus-img {
    opacity: 0;
    animation: heroFadeSlideLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Base custom utilities */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 50px;
}

body {
    overflow-x: hidden;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    /* white background */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Adjust text color when scrolled */
.navbar-scrolled.scrolled-colors a.nav-link {
    color: #203d85;
    /* primary-dark */
}

.navbar-scrolled.scrolled-colors a.nav-link:hover {
    color: #3a84c8;
    /* primary-light */
}

.navbar-scrolled.scrolled-colors #mobile-menu-btn {
    color: #203d85;
}

.navbar-scrolled.scrolled-colors #mobile-menu-btn:hover {
    background-color: rgba(32, 61, 133, 0.1);
}

/* Cities Carousel Animation */
.cities-carousel {
    min-height: 60px;
}

.city-item {
    opacity: 1;
    transition: none;
}

/* Powiększenie miast na desktop o 35% */
@media (min-width: 768px) {
    .cities-carousel > .hidden.md\:flex {
        font-size: 1.35rem;
    }

    .cities-carousel > .hidden.md\:flex svg {
        width: 1.89rem;
        height: 1.89rem;
    }
}

/* ── Mapa Polski ── */
.map-widget {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.map-svg-container {
    position: relative;
    width: 100%;
}

.map-svg-container svg.poland-map {
    display: block;
    width: 100%;
    height: auto;
}

.city-pin {
    position: absolute;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pin-fade-in 0.5s ease both;
}

.city-pin:nth-child(2) { animation-delay: 0.08s; }
.city-pin:nth-child(3) { animation-delay: 0.16s; }
.city-pin:nth-child(4) { animation-delay: 0.24s; }
.city-pin:nth-child(5) { animation-delay: 0.32s; }
.city-pin:nth-child(6) { animation-delay: 0.40s; }

@keyframes pin-fade-in {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pin-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.city-pin:hover .pin-img {
    transform: scale(1.25) rotate(90deg);
}

.city-name {
    margin-top: 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

@media (min-width: 480px) {
    .pin-img { width: 28px; height: 28px; }
    .city-name { font-size: 14px; }
}

@media (min-width: 1024px) {
    .pin-img { width: 36px; height: 36px; }
    .city-name { font-size: 21.6px; }
}

/* FAQ: pytania mniejsze o 20% względem text-lg */
#faq [data-faq-toggle] span {
    font-size: 0.9rem;
}

/* ── Cookie Consent Blur Overlay ── */
body.cookie-pending {
    overflow: auto;
}

#page-wrapper {
    transition: filter 0.4s ease;
}

body.cookie-pending #page-wrapper {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

#cookie-blur-overlay {
    display: none;
}

#cookie-blur-overlay.hidden {
    display: none;
}

.ambassador-player video:fullscreen,
.ambassador-player video:-webkit-full-screen {
    object-fit: contain;
    background: #000;
}