/* Promo Banner Styles - COOL & EYE-CATCHING */

@keyframes promo-pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.12); 
    }
}

@keyframes promo-shine {
    0%, 90% { 
        background-position: -200% center;
        filter: brightness(1);
    }
    95% {
        filter: brightness(1.3);
    }
    100% { 
        background-position: 200% center;
        filter: brightness(1);
    }
}

@keyframes code-shine-sweep {
    0%, 100% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
}

@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 1;
    }
}

@keyframes promo-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    }
}

@keyframes diagonal-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Ikony s animacÃ­ */
.promo-icon {
    display: inline-block;
    animation: promo-pulse 1.5s ease-in-out infinite;
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.promo-icon-small {
    display: inline-block;
    animation: promo-pulse 1.5s ease-in-out infinite;
    font-size: 2rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* KÃ³d - EXTRA VÃRAZNÃ */
.promo-code {
    font-weight: 900;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    user-select: none;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: promo-glow 2s ease-in-out infinite;
    font-size: 2rem !important;
    letter-spacing: 4px !important;
    position: relative;
    overflow: hidden;
}

/* Shine efekt POUZE na kÃ³du - pÅejezd zleva doprava (10s interval) */
.promo-code.promo-code-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: code-shine-sweep 10s ease-in-out infinite;
    pointer-events: none;
}

.promo-code-small {
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    user-select: none;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    font-size: 1.4rem !important;
    letter-spacing: 3px !important;
    position: relative;
    overflow: hidden;
}

/* Shine efekt i pro malÃ© kÃ³dy */
.promo-code-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: code-shine-sweep 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.promo-code-inline {
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    user-select: none;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

/* Shine efekt i pro inline kÃ³dy */
.promo-code-inline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: code-shine-sweep 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Hover efekt pro copy */
.promo-code:hover, 
.promo-code-small:hover, 
.promo-code-inline:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-style: solid;
}

.promo-code:active,
.promo-code-small:active,
.promo-code-inline:active {
    transform: scale(1.02);
}

/* Top banner v hlaviÄce - KOMPAKTNÃ */
#promo-top-banner {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    padding: 6px 12px 6px 44px;
    z-index: 1000;
}

#promo-top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    animation: diagonal-stripes 20s linear infinite;
    pointer-events: none;
}

.promo-top-banner__close {
    position: absolute;
    top: 50%;
    left: 10px;
    right: auto;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.2);
    color: inherit;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.promo-top-banner__close:hover {
    background: rgba(255,255,255,0.4);
}

.promo-top-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* HlavnÃ­ ÅÃ¡dek: emoji + nadpis + kÃ³d vÅ¾dy pohromadÄ */
.promo-top-banner__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
}

.promo-top-banner__emoji {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.promo-top-banner__title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.promo-top-banner__code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.35);
}

.promo-top-banner__code-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.promo-top-banner__app-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    color: #111 !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.promo-top-banner__app-link:hover,
.promo-top-banner__app-link:focus {
    background: #fff;
    color: #000 !important;
}

/* App-only: ÄistÃ½ ÅÃ¡dek title | kÃ³d + CTA, bez dlouhÃ©ho labelu */
#promo-top-banner.promo-top-banner--app-only {
    padding: 8px 14px 8px 40px;
}

#promo-top-banner.promo-top-banner--app-only .promo-top-banner__primary {
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 10px;
}

#promo-top-banner.promo-top-banner--app-only .promo-top-banner__title {
    white-space: nowrap;
}

#promo-top-banner.promo-top-banner--app-only .promo-top-banner__code-wrap {
    gap: 8px;
    padding-left: 10px;
}

#promo-top-banner.promo-top-banner--app-only .promo-code-inline {
    cursor: default;
}

#promo-top-banner.promo-top-banner--app-only .promo-code-inline:hover,
#promo-top-banner.promo-top-banner--app-only .promo-code-inline:active {
    transform: none;
    box-shadow: none;
    border-style: dashed;
}

/* Popis â max 1 ÅÃ¡dek, na menÅ¡Ã­ch displejÃ­ch skrytÃ½ */
.promo-top-banner__desc {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tablet a menÅ¡Ã­ â popis schovat, titulek mÅ¯Å¾e zalamovat */
@media (max-width: 1100px) {
    .promo-top-banner__desc {
        display: none;
    }
}

@media (max-width: 768px) {
    #promo-top-banner {
        font-size: 12px;
        padding: 5px 8px 5px 36px;
    }

    .promo-top-banner__close {
        width: 20px;
        height: 20px;
        font-size: 14px;
        left: 8px;
        right: auto;
    }

    .promo-top-banner__primary {
        gap: 6px;
    }

    .promo-top-banner__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: unset;
    }
    
    .promo-icon {
        font-size: 2rem;
    }
    
    .promo-code {
        font-size: 1.3rem !important;
        padding: 8px 15px !important;
    }
    
    /* Homepage banner - mobilnÃ­ verze */
    .promo-banner-homepage {
        padding: 20px 12px !important;
    }
    
    .promo-hp-title {
        font-size: 1.2rem !important;
        letter-spacing: 0.5px !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
    
    .promo-banner-homepage p {
        font-size: 0.95rem !important;
    }
    
    .promo-banner-homepage .promo-icon,
    .promo-banner-homepage .promo-icon--inline {
        font-size: 1.1em !important;
        margin: 0 0.2em 0 0 !important;
    }
    
    .promo-banner-homepage .promo-code {
        font-size: 1.4rem !important;
        padding: 8px 16px !important;
        letter-spacing: 2px !important;
    }
    
    .promo-banner-homepage > div > div > div:first-child {
        font-size: 0.9rem !important;
    }
    
    /* Detail banner - kompaktnÃ­ */
    .promo-banner-detail {
        max-width: 100%;
        padding: 15px 12px;
    }
    
    .promo-banner-detail .promo-title {
        font-size: 1rem !important;
    }
    
    .promo-code-small {
        font-size: 0.95rem !important;
        padding: 5px 12px !important;
    }
    
    .promo-icon-small {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 576px) {
    #promo-top-banner {
        font-size: 11px;
        /* close je vlevo â padding musÃ­ bÃ½t vlevo, ne vpravo */
        padding: 6px 10px 6px 34px;
    }

    .promo-top-banner__primary {
        flex-wrap: wrap;
        row-gap: 3px;
    }

    .promo-top-banner__title {
        -webkit-line-clamp: 1;
    }

    .promo-top-banner__code-wrap {
        flex: 0 0 100%;
        justify-content: center;
        border-left: none;
        padding-left: 0;
    }

    #promo-top-banner.promo-top-banner--app-only {
        padding: 7px 10px 7px 34px;
    }

    #promo-top-banner.promo-top-banner--app-only .promo-top-banner__primary {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    /* blesk + nadpis na jednom ÅÃ¡dku */
    #promo-top-banner.promo-top-banner--app-only .promo-top-banner__emoji {
        flex-shrink: 0;
    }

    #promo-top-banner.promo-top-banner--app-only .promo-top-banner__title {
        white-space: nowrap;
        text-align: left;
        font-size: 0.88rem;
        line-height: 1.25;
        -webkit-line-clamp: unset;
        display: inline;
        overflow: visible;
    }

    #promo-top-banner.promo-top-banner--app-only .promo-top-banner__code-wrap {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
        border-left: none;
        padding-left: 0;
        gap: 8px;
    }

    #promo-top-banner.promo-top-banner--app-only .promo-top-banner__app-link {
        font-size: 0.72rem;
        padding: 0.32rem 0.75rem;
    }
    
    .promo-code-inline {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        letter-spacing: 1px !important;
    }
    
    /* Extra malÃ© - jeÅ¡tÄ menÅ¡Ã­ nadpis na HP */
    .promo-hp-title {
        font-size: 1rem !important;
    }
    
    .promo-banner-homepage p {
        font-size: 0.85rem !important;
    }
    
    .promo-banner-homepage .promo-icon,
    .promo-banner-homepage .promo-icon--inline {
        font-size: 1.05em !important;
        margin: 0 0.2em 0 0 !important;
    }
    
    .promo-banner-homepage .promo-code {
        font-size: 1.1rem !important;
        padding: 6px 12px !important;
        letter-spacing: 1.5px !important;
    }
    
    .promo-banner-homepage > div > div > div:first-child {
        font-size: 0.85rem !important;
    }
}

/* Copy feedback tooltip */
.copy-feedback {
    display: none;
    font-size: 0.8rem;
    color: #4CAF50;
    margin-left: 10px;
    animation: fadeIn 0.3s ease-in;
}

.copy-feedback.show {
    display: inline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Homepage banner - stejnÃ¡ velikost jako ostatnÃ­ bannery */
.promo-banner-homepage {
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

/* Detail banner */
.promo-banner-detail {
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.promo-banner-homepage::before,
.promo-banner-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 15px,
        rgba(255,255,255,0.03) 15px,
        rgba(255,255,255,0.03) 30px
    );
    animation: diagonal-stripes 30s linear infinite;
    pointer-events: none;
}

.promo-banner-homepage .promo-content,
.promo-banner-detail .promo-content {
    position: relative;
    z-index: 1;
}

/* Fonty pro homepage - proporcionÃ¡lnÃ­ */
.promo-banner-homepage h2 {
    font-weight: 900 !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.promo-banner-homepage p {
    font-size: 1.1rem !important;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.promo-banner-homepage .promo-icon,
.promo-banner-homepage .promo-icon--inline {
    display: inline-block;
    font-size: 1.15em;
    margin: 0 0.25em 0 0;
    vertical-align: -0.1em;
    line-height: 1;
    animation: promo-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Detail banner - EXTRA KOMPAKTNÃ verze */
.promo-banner-detail {
    font-size: 0.9rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.promo-banner-detail .promo-code-small {
    font-size: 1.05rem !important;
    padding: 6px 14px !important;
    letter-spacing: 2px !important;
}
