/* ============================================================
   PWA iOS Install Prompt — Radio Svitlo
   Isolated styles with .pwa-ios-prompt prefix
   ============================================================ */

.pwa-ios-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 12px 12px;
    box-sizing: border-box;
    pointer-events: none;

    /* slide-up entry */
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.34, 1.28, 0.64, 1),
        opacity 0.32s ease;
}

.pwa-ios-prompt.pwa-ios-prompt--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── Card ─────────────────────────────────────────────────── */
.pwa-ios-prompt__card {
    position: relative;
    background: rgba(28, 28, 30, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 20px 18px 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    color: #f2f2f7;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Close button ─────────────────────────────────────────── */
.pwa-ios-prompt__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.pwa-ios-prompt__close:hover,
.pwa-ios-prompt__close:focus {
    background: rgba(255, 255, 255, 0.20);
    outline: none;
}

.pwa-ios-prompt__close svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* ── Header row: icon + title ─────────────────────────────── */
.pwa-ios-prompt__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding-right: 32px;
    /* leave room for close btn */
}

.pwa-ios-prompt__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pwa-ios-prompt__title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.pwa-ios-prompt__subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(235, 235, 245, 0.60);
    margin: 3px 0 0;
}

/* ── Divider ──────────────────────────────────────────────── */
.pwa-ios-prompt__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0 14px;
}

/* ── Description ─────────────────────────────────────────── */
.pwa-ios-prompt__desc {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: rgba(235, 235, 245, 0.75);
    line-height: 1.5;
    margin: 0 0 14px;
}

/* ── Steps ────────────────────────────────────────────────── */
.pwa-ios-prompt__steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-ios-prompt__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pwa-ios-prompt__step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.85);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.pwa-ios-prompt__step-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: rgba(235, 235, 245, 0.82);
    line-height: 1.5;
}

/* iOS Share icon inline SVG */
.pwa-ios-prompt__share-icon {
    display: inline-block;
    vertical-align: -3px;
    width: 14px;
    height: 14px;
    margin: 0 1px;
}

/* ── Caret (arrow pointing down toward Safari bar) ────────── */
.pwa-ios-prompt__caret {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.pwa-ios-prompt__caret svg {
    width: 22px;
    height: 11px;
    fill: rgba(28, 28, 30, 0.92);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================================
   PWA Install — Static page section
   ============================================================ */

.pwa-install-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 80px;
    background: #111113;
    box-sizing: border-box;
}

.pwa-install-section__inner {
    width: 100%;
    max-width: 520px;
}

/* Heading above the card */
.pwa-install-section__heading {
    text-align: center;
    margin-bottom: 28px;
}

.pwa-install-section__heading h1 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.pwa-install-section__heading p {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: rgba(235, 235, 245, 0.50);
    margin: 0;
}

/* Static card — reuses .pwa-ios-prompt__card but without the overlay wrapper */
.pwa-install-section .pwa-ios-prompt__card {
    max-width: 100%;
    padding: 28px 24px 24px;
}

/* No close button on the static page */
.pwa-install-section .pwa-ios-prompt__close {
    display: none;
}

/* No padding-right needed since close btn is hidden */
.pwa-install-section .pwa-ios-prompt__header {
    padding-right: 0;
}

/* Slightly larger icon on desktop */
.pwa-install-section .pwa-ios-prompt__icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
}

.pwa-install-section .pwa-ios-prompt__title {
    font-size: 17px;
}

.pwa-install-section .pwa-ios-prompt__desc {
    font-size: 14px;
}

.pwa-install-section .pwa-ios-prompt__step-text {
    font-size: 14px;
}

/* Hide caret on static page */
.pwa-install-section .pwa-ios-prompt__caret {
    display: none;
}

/* Back link */
.pwa-install-section__back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: rgba(10, 132, 255, 0.85);
    text-decoration: none;
    transition: opacity 0.2s;
}

.pwa-install-section__back:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── Two-card grid ────────────────────────────────────────── */
.pwa-install-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.pwa-install-section__grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1100px;
}

@media (max-width: 900px) {
    .pwa-install-section__grid--3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {

    .pwa-install-section__grid,
    .pwa-install-section__grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Card wrapper with platform label */
.pwa-install-section__platform {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-install-section__platform-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(235, 235, 245, 0.45);
}

.pwa-install-section__platform-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Make both cards fill full height of their column */
.pwa-install-section__platform .pwa-ios-prompt__card {
    flex: 1;
}

/* ── Android install button ───────────────────────────────── */
.pwa-android-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 13px 20px;
    background: #34a853;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.pwa-android-btn:hover,
.pwa-android-btn:focus {
    background: #2d9147;
    outline: none;
}

.pwa-android-btn:active {
    transform: scale(0.97);
}

.pwa-android-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

/* installed state */
.pwa-android-btn--installed {
    background: rgba(255, 255, 255, 0.08);
    cursor: default;
    pointer-events: none;
    color: rgba(235, 235, 245, 0.50);
}

/* ── Android manual fallback steps ───────────────────────── */
.pwa-android-fallback {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pwa-android-fallback__title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(235, 235, 245, 0.35);
    margin: 0 0 10px;
}

/* Reuse step styles — Android uses green dots */
.pwa-android-fallback .pwa-ios-prompt__step-num {
    background: rgba(52, 168, 83, 0.85);
}

/* Three-dots icon inline */
.pwa-android-dots-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    vertical-align: middle;
    margin: 0 2px;
}

.pwa-android-dots-icon span {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.9);
}