/* ============================================================
   styly_ui.css — sdilene UI styly (listy, komponenty)
   ============================================================ */

/* ============================================================
   Barevna paleta:
   Modra Fajn prace: #2563eb / #1d4ed8 / #1e40af
   Oranzova akcent:  #ff8c00 / #ff7300 (gradient)
   Zelena "zdarma":  #16a34a / #22c55e
   ============================================================ */


/* ============================================
   Spolecne — Lista
   ============================================ */
.download-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.25;
}

.download-banner p {
    line-height: 1.25;
}


/* ============================================
   Sdilene — logo (img)
   ============================================ */
.download-banner__logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    object-fit: contain;
}

.download-banner__logo--small {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}


/* ============================================
   Sdilene — hvezdy (oranzove)
   ============================================ */
.download-banner__stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    vertical-align: middle;
}

.download-banner__star {
    color: #ff8c00;
    font-size: 13px;
    line-height: 1;
}

.download-banner__star--half {
    position: relative;
    color: rgba(255, 140, 0, 0.25);
}

.download-banner__star--half::before {
    content: '\2605';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ff8c00;
}


/* ============================================
   Sdilene — krizek
   ============================================ */
.download-banner__close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    font-family: inherit;
    padding: 0;
    color: #fff;
    transition: background 0.15s;
}

.download-banner__close:hover,
.download-banner__close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.download-banner__close--corner {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #94a3b8;
    z-index: 5;
}

.download-banner__close--corner:hover,
.download-banner__close--corner:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}


/* ============================================================
   VARIANTA A — premium tmava s glow
   ============================================================ */
.download-banner--a {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 16px 16px 18px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.download-banner--a .download-banner__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.download-banner--a .download-banner__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.download-banner--a .download-banner__title--accent {
    color: #ff8c00;
    font-weight: 800;
}

.download-banner--a .download-banner__content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-banner--a .download-banner__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.download-banner--a .download-banner__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    padding: 14px 76px 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    min-height: 50px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}

.download-banner--a .download-banner__btn:hover,
.download-banner--a .download-banner__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    outline: none;
}

.download-banner--a .download-banner__btn-text {
    flex: 1;
}

.download-banner--a .download-banner__badge {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    background: linear-gradient(135deg, #ff8c00 0%, #ff7300 100%);
    color: #fff;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    border: 3px solid #0f172a;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
}


/* ============================================================
   VARIANTA B — store-style card
   ============================================================ */
.download-banner--b {
    background: #fff;
    color: #0f172a;
    padding: 14px 14px 16px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.download-banner--b__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-banner--b__info {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.download-banner--b__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.download-banner--b__rating {
    margin: 0 0 2px;
    font-size: 13px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.download-banner--b__rating-num strong {
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
}

.download-banner--b__rating-meta {
    margin: 0 0 2px;
    font-size: 11px;
    color: #475569;
    font-weight: 500;
}

.download-banner--b__updated {
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
}

.download-banner--b__store {
    margin: 0;
    font-size: 11px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.download-banner--b__cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    min-height: 44px;
    min-width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.download-banner--b__cta:hover,
.download-banner--b__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
    outline: none;
}


/* ============================================================
   VARIANTA C — value-first s oranzovym akcentem
   ============================================================ */
.download-banner--c {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%);
    color: #fff;
    padding: 18px 16px 18px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 32px rgba(37, 99, 235, 0.4);
    overflow: hidden;
}

.download-banner--c::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.download-banner--c .download-banner__close--corner {
    color: rgba(255, 255, 255, 0.85);
}

.download-banner--c .download-banner__close--corner:hover,
.download-banner--c .download-banner__close--corner:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.download-banner--c__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.download-banner--c__headline {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
    padding-right: 40px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.download-banner--c__headline strong {
    font-weight: 800;
}

.download-banner--c__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.95);
}

.download-banner--c__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
}

.download-banner--c__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c00 0%, #ff7300 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.45);
}

.download-banner--c__cta {
    background: #fff;
    color: #1d4ed8;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    transition: transform 0.15s, box-shadow 0.15s;
}

.download-banner--c__cta:hover,
.download-banner--c__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    outline: none;
}


/* ============================================================
   VARIANTA D — progresivni reveal
   ============================================================ */
.download-banner--d {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.download-banner--d__bar {
    display: flex;
    align-items: stretch;
}

.download-banner--d__strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: #fff;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    min-height: 64px;
    transition: background 0.15s;
}

.download-banner--d .download-banner--d__full[hidden] ~ .download-banner--d__bar .download-banner--d__strip {
    border-top-left-radius: 20px;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
}

.download-banner--d__strip:hover,
.download-banner--d__strip:focus-visible {
    background: #f8fafc;
    outline: none;
}

.download-banner--d__strip-text {
    flex: 1;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.download-banner--d__strip-text strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.download-banner--d__strip-text > span {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-banner--d__strip-chev {
    color: #94a3b8;
    font-size: 11px;
    transition: transform 0.25s;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-banner--d__strip[aria-expanded="true"] .download-banner--d__strip-chev {
    transform: rotate(180deg);
    background: #dbeafe;
    color: #2563eb;
}

.download-banner--d__strip-close {
    width: 44px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 24px;
    background: #fff;
    cursor: pointer;
    border-left: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.download-banner--d .download-banner--d__full[hidden] ~ .download-banner--d__bar .download-banner--d__strip-close {
    border-top-right-radius: 20px;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
}

.download-banner--d__strip-close:hover,
.download-banner--d__strip-close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.download-banner--d__stars {
    display: inline-flex;
    gap: 1px;
    margin-right: 4px;
    vertical-align: middle;
}

.download-banner--d__star {
    color: #ff8c00;
    font-size: 11px;
    line-height: 1;
}

.download-banner--d__rating-text {
    vertical-align: middle;
}

.download-banner--d__full {
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 16px 22px;
    text-align: center;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid #f1f5f9;
}

.download-banner--d__full[hidden] {
    display: none;
}

.download-banner--d__title {
    margin: 0 0 4px;
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.download-banner--d__sub {
    margin: 0 0 12px;
    font-size: 14px;
    color: #475569;
}

.download-banner--d__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-weight: 500;
}

.download-banner--d__rating strong {
    color: #0f172a;
    font-weight: 700;
}

.download-banner--d__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    min-height: 50px;
    min-width: 60%;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.download-banner--d__cta:hover,
.download-banner--d__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
    outline: none;
}


/* ============================================================
   VARIANTA E — recenze s oranzovym akcentem
   ============================================================ */
.download-banner--e {
    background: #fff;
    color: #0f172a;
    padding: 14px 14px 16px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.download-banner--e::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #ff8c00, #2563eb);
    border-radius: 999px;
}

.download-banner--e__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-banner--e__review {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    transition: opacity 0.3s;
}

.download-banner--e__quote {
    margin: 0;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.4;
}

.download-banner--e__stars {
    color: #ff8c00;
    font-size: 12px;
    margin-right: 4px;
    letter-spacing: 1px;
}

.download-banner--e__author {
    margin: 3px 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.download-banner--e__illustrative {
    color: #94a3b8;
    font-weight: 500;
    font-style: italic;
    font-size: 10px;
    margin-left: 2px;
}

.download-banner--e__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.download-banner--e__pause {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.download-banner--e__pause:hover,
.download-banner--e__pause:focus-visible {
    background: #dbeafe;
    color: #2563eb;
    outline: none;
    border-color: #2563eb;
}

.download-banner--e__pause-icon {
    font-size: 11px;
    line-height: 1;
}

.download-banner--e__cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.download-banner--e__cta:hover,
.download-banner--e__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
    outline: none;
}


/* ============================================================
   VARIANTA F — deferred deep link s oranzovym flagem
   ============================================================ */
.download-banner--f {
    background: #fff;
    color: #0f172a;
    padding: 14px 14px 16px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.download-banner--f .download-banner__close--corner {
    top: -18px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    font-size: 18px;
}

.download-banner--f .download-banner__close--corner:hover,
.download-banner--f .download-banner__close--corner:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.download-banner--f::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00 0%, #ff7300 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.download-banner--f__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-banner--f__info {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.download-banner--f__hint {
    margin: 0 0 3px;
    font-size: 11px;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-banner--f__hint-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c2410c;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .download-banner--f__hint-dot {
        animation: lbPulse 1.8s infinite;
    }
    @keyframes lbPulse {
        0%   { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.6); }
        70%  { box-shadow: 0 0 0 7px rgba(194, 65, 12, 0); }
        100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0); }
    }
}

.download-banner--f__job {
    margin: 0;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.35;
}

.download-banner--f__job strong {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.download-banner--f__job span {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.download-banner--f__cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.download-banner--f__cta:hover,
.download-banner--f__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
    outline: none;
}


/* ============================================================
   Velmi male telefony
   ============================================================ */
@media (max-width: 360px) {
    .download-banner--a .download-banner__title {
        font-size: 14px;
    }
    .download-banner--a .download-banner__btn {
        font-size: 13px;
        padding: 12px 64px 12px 14px;
    }
    .download-banner--a .download-banner__badge {
        width: 50px;
        height: 50px;
        font-size: 8px;
    }
    .download-banner--b__cta,
    .download-banner--e__cta,
    .download-banner--f__cta {
        padding: 10px 16px;
        font-size: 13px;
    }
    .download-banner--c__headline {
        font-size: 16px;
    }
}


/* ============================================================
   Reduced motion (WCAG 2.3.3 / EAA)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .download-banner {
        animation: none;
    }
    .download-banner--d__strip-chev,
    .download-banner--a .download-banner__btn,
    .download-banner--b__cta,
    .download-banner--c__cta,
    .download-banner--d__cta,
    .download-banner--e__cta,
    .download-banner--f__cta {
        transition: none;
    }
    .download-banner--f__hint-dot {
        animation: none;
    }
}
