/* ================================================================= */
/* */
/* PLIK: css/hero.css                                                */
/* */
/* ================================================================= */

.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Zmniejszony padding i usunięte min-height: 100vh dla lepszej dynamiki */
    padding-top: 150px;
    padding-bottom: 90px;
}

/* --- TŁO: SIATKA I BLASK --- */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Maska sprawia, że siatka znika na brzegach ekranu */
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: pulse-glow 8s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    will-change: transform, opacity;
}

.orb-1 {
    top: 50%;
    left: 50%;
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, var(--accent-purple) 0%, rgba(123, 44, 191, 0) 70%);
    transform: translate(-50%, -50%);
}

.orb-2 {
    top: 30%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, #B388EB 0%, rgba(179, 136, 235, 0) 70%);
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

/* --- KONTENER I TEKST --- */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    /* Nieco węższy, by tekst ładniej się łamał */
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Nowy element (Badge) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    color: #e4e4e7;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(157, 78, 221, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-white);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(123, 44, 191, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-muted);
    /* Nieco jaśniejszy niż wcześniej dla lepszej czytelności */
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* --- PRZYCISKI --- */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-btn {
    padding: 1rem 2rem;
    /* Ciaśniejsze przyciski */
    font-size: 1rem;
    border-radius: 12px;
    /* Bardziej obłe, nowoczesne kąty */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- ANIMACJE WEJŚCIA --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-section {
        padding-top: 130px;
        padding-bottom: 60px;
    }
}


/* ================================================================= */
/*                                                                   */
/* MODYFIKACJA HERO DLA PODSTRONY SMM (Wylatujące powiadomienia)     */
/*                                                                   */
/* ================================================================= */

.smm-hero {
    padding-top: 140px;
    align-items: center;
    text-align: left;
}

.smm-hero .hero-content {
    margin: 0;
    max-width: 100%;
}

.smm-hero .hero-title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    /* Lekko mniejszy ze względu na długość zdania */
}

.smm-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.smm-hero .hero-actions {
    justify-content: flex-start;
}

/* Ciemno-fioletowe tło ekranu dla usługi SMM */
.smm-bg {
    background: linear-gradient(135deg, #110e14 0%, #291040 100%);
}

.smm-stats-placeholder {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(157, 78, 221, 0.5);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

/* --- ANIMACJA POWIADOMIEŃ --- */
.smm-phone-mockup {
    /* Ustawiamy relative, aby bąbelki pozycjonowały się względem telefonu */
    position: relative;
    /* Wyłączamy overflow, żeby bąbelki mogły wylecieć poza ekran telefonu */
    overflow: visible;
}

.notifications-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.notif-bubble {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(157, 78, 221, 0.15);
    opacity: 0;
    animation: floatNotification 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Pozycje startowe bąbelków */
.bubble-1 {
    right: -20px;
    top: 40%;
    animation-delay: 0s;
}

.bubble-2 {
    left: -20px;
    top: 20%;
    animation-delay: 1.2s;
}

.bubble-3 {
    right: 10px;
    top: -10px;
    animation-delay: 2.5s;
}

/* Fizyka wylatywania bąbelków */
@keyframes floatNotification {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateY(-60px) scale(1.1);
    }

    100% {
        transform: translateY(-80px) scale(0.9);
        opacity: 0;
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .smm-hero {
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }

    .smm-hero .hero-actions {
        justify-content: center;
    }

    .notif-bubble {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Na telefonach zapobiegamy ucinaniu bąbelków wychodzących z boków */
    .bubble-1 {
        right: -10px;
    }

    .bubble-2 {
        left: -10px;
    }
}

/* ================================================================= */
/*                                                                   */
/* MODYFIKACJA HERO DLA WIZYT LOKALNYCH (Animowana Mapa)             */
/*                                                                   */
/* ================================================================= */

.local-hero {
    padding-top: 140px;
    align-items: center;
    text-align: left;
}

.local-hero .hero-content {
    margin: 0;
    max-width: 100%;
}

.local-hero .hero-title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.local-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.local-hero .hero-actions {
    justify-content: flex-start;
}

/* --- DESIGN MAPY (UI Mockup) --- */
.map-mockup {
    width: 340px;
    height: 420px;
    background: #0d0d12;
    border-radius: 24px;
    border: 1px solid var(--border-zinc);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(157, 78, 221, 0.05);
}

/* Siatka ulic / radar */
.map-grid-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotate(15deg);
    pointer-events: none;
}

/* Centralna pinezka (Twój Biznes) */
.central-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--accent-purple);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 20px var(--accent-purple);
}

/* Pulsujący zasięg z Twojego lokalu */
.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: radarPulse 2.5s infinite;
}

.pin-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 12, 0.95);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(157, 78, 221, 0.5);
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0;
    }
}

/* Klienci / Twórcy zjeżdżający do lokalu */
.creator-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px #fff;
    animation: convergeToCenter 4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Pozycje startowe pinezek */
.pin-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.pin-2 {
    top: 80%;
    left: 85%;
    animation-delay: 1s;
}

.pin-3 {
    top: 75%;
    left: 20%;
    animation-delay: 2s;
}

.pin-4 {
    top: 20%;
    left: 75%;
    animation-delay: 3s;
}

@keyframes convergeToCenter {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    20% {
        transform: translate(0, 0) scale(1.2);
        opacity: 1;
    }

    80% {
        /* Przesunięcie wizualne bliżej środka, zależnie od ich pozycji */
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .local-hero {
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }

    .local-hero .hero-actions {
        justify-content: center;
    }
}

/* ================================================================= */
/* MODYFIKACJA HERO DLA TWÓRCÓW (Edytor Wideo UI)                    */
/* ================================================================= */

.creator-hero {
    padding-top: 140px;
    align-items: center;
    text-align: left;
}

.creator-hero .hero-content {
    margin: 0;
    max-width: 100%;
}

.creator-hero .hero-title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.creator-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.creator-hero .hero-actions {
    justify-content: flex-start;
}

/* Budowa interfejsu edytora wewnątrz ekranu telefonu */
.editor-mockup {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #09090b;
}

/* Okno podglądu z blaskiem Ring-Lighta */
.editor-preview {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #160a24 0%, #09090b 100%);
    overflow: hidden;
}

.ring-light-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.4), inset 0 0 20px rgba(157, 78, 221, 0.4);
    border: 4px solid rgba(157, 78, 221, 0.2);
}

/* Oś czasu na dole ekranu */
.editor-timeline {
    height: 110px;
    background: #121218;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.timeline-track {
    height: 24px;
    background: #050508;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
}

/* Klipy wideo */
.clip {
    height: 16px;
    border-radius: 4px;
}

.purple-clip {
    background: var(--accent-purple);
    width: 55%;
}

.pink-clip {
    background: #ec4899;
    width: 35%;
}

.blue-clip {
    background: #3b82f6;
    width: 45%;
}

/* Animowany kursor odtwarzania (Playhead) */
.playhead {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 20%;
    width: 2px;
    background: #fff;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: movePlayhead 4s ease-in-out infinite alternate;
}

.playhead::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

@keyframes movePlayhead {
    0% {
        left: 10%;
    }

    100% {
        left: 80%;
    }
}

@media (max-width: 992px) {
    .creator-hero {
        text-align: center;
        padding-top: 120px;
    }

    .creator-hero .hero-actions {
        justify-content: center;
    }
}

/* ================================================================= */
/*                                                                   */
/* MODYFIKACJA HERO DLA REALIZACJI (Animowany Wykres Zysku)          */
/*                                                                   */
/* ================================================================= */

.case-hero {
    padding-top: 140px;
    align-items: center;
    text-align: left;
}

.case-hero .hero-content {
    margin: 0;
    max-width: 100%;
}

.case-hero .hero-title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.case-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.case-hero .hero-actions {
    justify-content: flex-start;
}

/* --- UI Mrocznego Wykresu --- */
.chart-mockup {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(157, 78, 221, 0.05);
    margin: 0 auto;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.chart-title {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.chart-area {
    position: relative;
    height: 220px;
    width: 100%;
}

/* Poziome linie tła dla wykresu */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.g-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

/* Słupki zysku */
.bars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
    padding: 0 10px;
}

.bar-wrapper {
    width: 12%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, rgba(157, 78, 221, 0.2), var(--accent-purple));
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    transform-origin: bottom;
    animation: growBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: scaleY(0);
}

/* Kaskadowe opóźnienia i wysokości słupków */
.bar-1 {
    height: 20%;
    animation-delay: 0.2s;
}

.bar-2 {
    height: 35%;
    animation-delay: 0.4s;
}

.bar-3 {
    height: 50%;
    animation-delay: 0.6s;
}

.bar-4 {
    height: 40%;
    animation-delay: 0.8s;
}

/* Naturalny spadek przed wybiciem */
.bar-5 {
    height: 75%;
    animation-delay: 1.0s;
}

/* Ostatni słupek jako spektakularny wynik (Zielony) */
.bar-6 {
    height: 100%;
    animation-delay: 1.2s;
    background: linear-gradient(to top, rgba(34, 197, 94, 0.2), #22c55e);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Responsywność */
@media (max-width: 992px) {
    .case-hero {
        text-align: center;
        padding-top: 120px;
    }

    .case-hero .hero-actions {
        justify-content: center;
    }

    .chart-mockup {
        max-width: 100%;
    }
}

/* ================================================================= */
/*                                                                   */
/* MODYFIKACJA HERO DLA KONTAKTU (Minimalizm i lewitująca ikona)     */
/*                                                                   */
/* ================================================================= */

.contact-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    /* Zmniejszony dolny margines, by płynnie przejść do formularza */
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

/* Lewitująca ikona na środku */
.floating-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatContactIcon 5s ease-in-out infinite;
}

/* Fioletowa poświata pod ikoną */
.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--accent-purple);
    filter: blur(35px);
    opacity: 0.6;
    border-radius: 50%;
    z-index: 1;
}

.contact-icon {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    color: #fff;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
}

@keyframes floatContactIcon {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsywność dla Hero Kontakt */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 130px;
        padding-bottom: 40px;
    }

    .floating-icon-wrapper {
        margin-bottom: 30px;
    }
}

/* ================================================================= */
/*                                                                   */
/* MODYFIKACJA HERO DLA LOKALIZACJI (Interaktywna Wyszukiwarka)      */
/*                                                                   */
/* ================================================================= */

.location-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.location-hero .hero-subtitle {
    margin-bottom: 40px;
}

/* Kontener Wyszukiwarki (Pozycjonowanie i Cień) */
.search-box-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Efekt Glassmorphism na ramce */
.search-glass-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(157, 78, 221, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stan Aktywny (Focus) - Neonowy Blask */
.search-glass-container:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.4), inset 0 0 20px rgba(157, 78, 221, 0.1);
    background: rgba(15, 15, 20, 0.85);
    transform: translateY(-2px);
}

/* Jarząca się ikona Lupy */
.search-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-purple);
    margin-right: 16px;
    filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.6));
    transition: transform 0.3s ease;
}

/* Subtelny zoom lupy przy kliknięciu */
.search-glass-container:focus-within .search-icon {
    transform: scale(1.1);
}

/* Pole Tekstowe (Input) */
.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 16px 0;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #71717a;
    font-weight: 400;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .location-hero {
        padding-top: 130px;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 12px 0;
    }

    .search-glass-container {
        padding: 5px 16px;
    }

    .search-icon {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
}


/* ================================================================= */
/* */
/* LOKALNY HERO (SZABLON PODSTRON WOJEWÓDZKICH)                      */
/* */
/* ================================================================= */

.local-hero {
    /* Dziedziczy bazowe style z .hero-section, dodajemy tylko specyficzne nakładki */
    position: relative;
    z-index: 1;
}

/* Znak wodny - zarys województwa w tle */
.local-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0.03;
    /* Niezwykle subtelny, żeby nie zaburzał czytelności tekstu */
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.local-watermark svg {
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 6px;
    stroke-linejoin: round;
    /* Delikatna, "oddychająca" animacja */
    animation: floatWatermark 12s ease-in-out infinite;
}

@keyframes floatWatermark {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) scale(1.02) rotate(1deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Dostosowanie znaku wodnego na telefony */
@media (max-width: 768px) {
    .local-watermark {
        max-width: 120%;
        /* Na mobile znak może wykraczać poza ekran */
        opacity: 0.02;
    }
}

/* ================================================================= */
/* */
/* LOKALNY HERO (SZABLON PODSTRON WOJEWÓDZKICH Z PLIKIEM SVG)       */
/* */
/* ================================================================= */

.region-hero {
    position: relative;
    z-index: 1;
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.region-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Lewa na tekst, prawa na mapę */
    gap: 4rem;
    align-items: center;
}

.region-hero-content {
    text-align: left;
}

.region-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    text-shadow: none;
}

.region-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 600px;
}

.region-hero .hero-actions {
    justify-content: flex-start;
}

/* --- PRAWA KOLUMNA: MAPA Z ZEWNĘTRZNEGO PLIKU --- */
.region-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-map-container {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

#hero-map-container svg {
    width: 100%;
    height: auto;
}

/* 1. Domyślny wygląd całej Polski (wygaszona) */
#hero-map-container svg path {
    fill: rgba(255, 255, 255, 0.03) !important;
    stroke: rgba(255, 255, 255, 0.1) !important;
    stroke-width: 1 !important;
    stroke-linejoin: round;
    transition: all 0.5s ease;
}

/* 2. Wygląd JEDNEGO wybranego województwa (Neon) */
#hero-map-container svg path.is-active-region {
    fill: rgba(157, 78, 221, 0.3) !important;
    stroke: #a855f7 !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 25px rgba(157, 78, 221, 0.7)) !important;
    paint-order: stroke;
}

/* Szklany Tag UI wokół mapy */
.floating-ui-tag {
    position: absolute;
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(157, 78, 221, 0.4);
    padding: 10px 18px;
    border-radius: 50px;
    color: #e4e4e7;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(157, 78, 221, 0.1);
    white-space: nowrap;
    z-index: 10;
}

.tag-top {
    top: 15%;
    right: -5%;
    animation: floatTag 4s ease-in-out infinite alternate;
}

@keyframes floatTag {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .region-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .region-hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .region-hero .hero-actions {
        justify-content: center;
    }

    #hero-map-container {
        max-width: 400px;
    }

    .tag-top {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }
}

/* ================================================================= */
/* */
/* MODYFIKACJA HERO DLA PODSTRONY UGC (Dwie kolumny + Animacja)      */
/* */
/* ================================================================= */

.ugc-hero {
    /* Utrzymujemy pełną wysokość, ale dostosowujemy padding dla 2 kolumn */
    padding-top: 140px;
    align-items: center;
    text-align: left;
}

.ugc-hero .hero-content {
    margin: 0;
    max-width: 100%;
}

.ugc-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.ugc-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

/* Wyrównanie przycisków do lewej strony */
.ugc-hero .hero-actions {
    justify-content: flex-start;
}

/* --- ANIMACJA LEWITUJĄCEGO TELEFONU --- */
.floating-visual {
    display: flex;
    justify-content: center;
    /* Płynna, nieskończona animacja ruchu góra-dół */
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Tło dla wideo z kawiarni (do momentu wpięcia prawdziwego pliku MP4) */
.cafe-bg {
    background: linear-gradient(135deg, #2b1d0e 0%, #000 100%);
}

/* --- RESPONSYWNOŚĆ DLA PODSTRONY UGC --- */
@media (max-width: 992px) {
    .ugc-hero {
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }

    .ugc-hero .hero-content {
        margin: 0 auto;
    }

    .ugc-hero .hero-actions {
        justify-content: center;
    }

    .floating-visual {
        margin-top: 2rem;
        /* Zmniejszamy wychylenie animacji na mniejszych ekranach */
        animation: floatPhoneMobile 6s ease-in-out infinite;
    }
}

@keyframes floatPhoneMobile {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}