/* =========================================
   LANDUŚ — STABILNA WERSJA + MOBILE UPDATE
========================================= */

.dl-landus {
    --dl-landus-speed: 5.5s;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

.dl-landus-visual {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 180px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(
            circle,
            rgba(246, 198, 91, 0.14),
            transparent 68%
        );
    border-radius: 50%;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
    animation: dl-landus-float var(--dl-landus-speed) ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}

.dl-landus-visual::before {
    position: absolute;
    inset: 7%;
    border: 1px solid var(--dl-season-border, rgba(246, 198, 91, 0.24));
    border-radius: 50%;
    content: "";
    opacity: 0.65;
    pointer-events: none;
}

.dl-landus-visual::after {
    position: absolute;
    right: 10%;
    bottom: 7%;
    left: 10%;
    height: 18%;
    background:
        radial-gradient(
            ellipse,
            rgba(246, 198, 91, 0.18),
            transparent 72%
        );
    border-radius: 50%;
    content: "";
    filter: blur(12px);
    animation: dl-landus-shadow var(--dl-landus-speed) ease-in-out infinite;
    pointer-events: none;
}

.dl-landus-visual img {
    position: relative;
    z-index: 2;
    display: block;
    width: 96%;
    height: 96%;
    object-fit: contain;
    object-position: center bottom;
    animation: dl-landus-breathe 4.8s ease-in-out infinite;
    transform-origin: center bottom;
}

.dl-landus-small .dl-landus-visual {
    width: 105px;
}

.dl-landus-medium .dl-landus-visual {
    width: 180px;
}

.dl-landus-large .dl-landus-visual {
    width: 280px;
}

.dl-landus-message {
    position: relative;
    flex: 0 1 310px;
    width: 310px;
    max-width: min(310px, calc(100vw - 40px));
    min-width: 210px;
    min-height: 0;
    height: auto;
    padding: 18px 20px;
    box-sizing: border-box;
    color: var(--dl-text-soft, #f7ecdc);
    background:
        linear-gradient(
            145deg,
            rgba(7, 24, 30, 0.96),
            rgba(10, 38, 44, 0.94)
        );
    border: 1px solid var(--dl-season-border, rgba(246, 198, 91, 0.28));
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    animation: dl-landus-message-in 0.55s ease-out both;
}

.dl-landus-message::before {
    position: absolute;
    top: 50%;
    left: -9px;
    width: 17px;
    height: 17px;
    background: rgba(8, 29, 35, 0.98);
    border-bottom: 1px solid var(--dl-season-border, rgba(246, 198, 91, 0.28));
    border-left: 1px solid var(--dl-season-border, rgba(246, 198, 91, 0.28));
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.dl-landus-message-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--dl-season-accent, #f6c65b);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dl-landus-message-kicker::after {
    display: inline-block;
    margin-left: 5px;
    content: "✦";
    opacity: 0.45;
    animation: dl-landus-sparkle 2.8s ease-in-out infinite;
}

.dl-landus-message p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.dl-account-landus-wrap,
.dl-home-search-landus {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.dl-account-landus-component,
.dl-home-search-landus-component {
    justify-content: flex-end;
}

.dl-account-landus-component .dl-landus-message {
    transform: translateX(-18px);
}

.dl-home-search-landus-component .dl-landus-message {
    transform: translateX(-12px);
}

.dl-landus:hover .dl-landus-visual {
    animation-duration: 4s;
}

@keyframes dl-landus-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes dl-landus-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.012); }
}

@keyframes dl-landus-shadow {
    0%, 100% {
        opacity: 0.62;
        transform: scaleX(0.9);
    }
    50% {
        opacity: 0.38;
        transform: scaleX(0.8);
    }
}

@keyframes dl-landus-message-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dl-landus-sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.85) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.12) rotate(12deg);
    }
}

@media (max-width: 1100px) {
    .dl-landus-large .dl-landus-visual {
        width: 230px;
    }

    .dl-landus-message {
        flex-basis: 270px;
        width: 270px;
        max-width: 270px;
        min-width: 200px;
    }

    .dl-account-landus-component .dl-landus-message,
    .dl-home-search-landus-component .dl-landus-message {
        transform: translateX(-8px);
    }
}

@media (max-width: 700px) {
    .dl-landus {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }

    .dl-landus-medium .dl-landus-visual {
        width: min(155px, 52vw);
    }

    .dl-landus-large .dl-landus-visual {
        width: min(195px, 62vw);
    }

    .dl-landus-message {
        flex: 0 0 auto;
        width: min(100%, 380px);
        max-width: 380px;
        min-width: 0;
        min-height: 0;
        height: auto;
        transform: none !important;
    }

    .dl-landus-message::before {
        top: -9px;
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }
}

@media (max-width: 480px) {
    .dl-landus {
        gap: 13px;
    }

    .dl-landus-medium .dl-landus-visual {
        width: min(140px, 48vw);
    }

    .dl-landus-large .dl-landus-visual {
        width: min(180px, 58vw);
    }

    .dl-landus-message {
        flex: 0 0 auto !important;
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        height: auto !important;
        padding: 15px 16px;
    }

    .dl-landus-message p {
        font-size: 13px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-landus-visual,
    .dl-landus-visual::after,
    .dl-landus-visual img,
    .dl-landus-message,
    .dl-landus-message-kicker::after {
        animation: none !important;
        transition: none !important;
    }
}
