/* ═══════════════════════════════════════════════════════════════
   Kormuth PWA — Frontend CSS
   Install / notify banner + toast notification
   Secesný feel (gold + dark glass)
   ═══════════════════════════════════════════════════════════════ */

.kk-pwa-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 24px;
    z-index: 99998;
    max-width: 540px;
    margin: 0 auto;
    background: rgba(20, 14, 10, 0.92);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(212, 184, 144, 0.35);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 184, 144, 0.1) inset;
    color: #f4ede2;
    font-family: 'Jost', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.kk-pwa-banner--visible {
    opacity: 1;
    transform: translateY(0);
}

.kk-pwa-banner-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
}
.kk-pwa-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.kk-pwa-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
}
.kk-pwa-banner-text strong {
    font-weight: 500;
    color: #f4ede2;
}
.kk-pwa-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.kk-pwa-banner-btn {
    padding: 9px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}
.kk-pwa-banner-btn--primary {
    background: linear-gradient(135deg, #d4a574, #b89567);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.kk-pwa-banner-btn--primary:hover {
    background: linear-gradient(135deg, #e0b58a, #c4a37a);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 149, 103, 0.4);
}
.kk-pwa-banner-btn--secondary {
    background: transparent;
    color: rgba(244, 237, 226, 0.7);
    border-color: rgba(212, 184, 144, 0.3);
}
.kk-pwa-banner-btn--secondary:hover {
    color: #f4ede2;
    border-color: rgba(212, 184, 144, 0.6);
}

/* Mobile — banner stacked vertically */
@media (max-width: 540px) {
    .kk-pwa-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    .kk-pwa-banner-icon {
        font-size: 32px;
    }
    .kk-pwa-banner-actions {
        flex-direction: row;
        justify-content: center;
    }
    .kk-pwa-banner-btn {
        flex: 1;
        padding: 11px 14px;
    }
}

/* ═══════════════════ TOAST ═══════════════════ */
.kk-pwa-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    z-index: 99999;
    background: rgba(20, 14, 10, 0.95);
    color: #f4ede2;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(212, 184, 144, 0.4);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all .4s cubic-bezier(.2, .8, .2, 1);
}
.kk-pwa-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   INSTALL INSTRUCTIONS MODAL (od v1.0.2)
   Detailný step-by-step návod ako pridať appku
   ═══════════════════════════════════════════════════════════════ */
.kk-pwa-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s ease;
}
.kk-pwa-modal-backdrop--visible {
    opacity: 1;
}
.kk-pwa-modal-content {
    background: linear-gradient(180deg, #1a1612 0%, #2a2520 100%);
    color: #f4ede2;
    padding: 36px 32px 32px;
    border-radius: 8px;
    max-width: 460px;
    width: 100%;
    border: 1px solid rgba(212, 184, 144, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: 'Jost', sans-serif;
    position: relative;
    transform: scale(0.96);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.kk-pwa-modal-backdrop--visible .kk-pwa-modal-content {
    transform: scale(1);
}
.kk-pwa-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(212, 184, 144, 0.3);
    color: #f4ede2;
    font-size: 22px;
    line-height: 1;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.kk-pwa-modal-close:hover {
    border-color: rgba(212, 184, 144, 0.7);
    background: rgba(212, 184, 144, 0.15);
}
.kk-pwa-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.kk-pwa-modal-icon {
    font-size: 42px;
    margin-bottom: 12px;
}
.kk-pwa-modal-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    color: #d4a574;
    margin: 0 0 8px;
}
.kk-pwa-modal-content p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(244, 237, 226, 0.75);
    margin: 0;
}
.kk-pwa-modal-steps {
    list-style: none;
    counter-reset: kk-steps;
    margin: 0 0 26px;
    padding: 0;
}
.kk-pwa-modal-steps li {
    counter-increment: kk-steps;
    position: relative;
    padding: 12px 12px 12px 48px;
    margin-bottom: 8px;
    background: rgba(212, 184, 144, 0.08);
    border-left: 2px solid rgba(212, 184, 144, 0.4);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #f4ede2;
}
.kk-pwa-modal-steps li::before {
    content: counter(kk-steps);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #d4a574, #b89567);
    color: #fff;
    border-radius: 999px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(184, 149, 103, 0.4);
}
.kk-pwa-modal-steps li strong {
    color: #d4a574;
    font-weight: 500;
}
.kk-pwa-modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4a574, #b89567);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all .25s ease;
}
.kk-pwa-modal-btn:hover {
    background: linear-gradient(135deg, #e0b58a, #c4a37a);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184, 149, 103, 0.45);
}
@media (max-width: 540px) {
    .kk-pwa-modal-content {
        padding: 28px 22px 24px;
    }
    .kk-pwa-modal-content h2 {
        font-size: 22px;
    }
}
