/* AOSK PWA Install Banner & Modal Styles */

.aosk-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10000;
    width: calc(100% - 32px);
    max-width: 440px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    border: 1px solid rgba(27, 79, 156, 0.12);
    box-sizing: border-box;
    opacity: 0;
}

.aosk-pwa-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.aosk-pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.aosk-pwa-banner-content {
    flex: 1;
    min-width: 0;
}

.aosk-pwa-banner-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1B4F9C;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.aosk-pwa-banner-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}

.aosk-pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.aosk-pwa-btn-install {
    background: linear-gradient(135deg, #1B4F9C 0%, #153e7a 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.aosk-pwa-btn-install:hover {
    filter: brightness(1.1);
}

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

.aosk-pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: #adb5bd;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.aosk-pwa-btn-dismiss:hover {
    color: #495057;
    background-color: #f1f3f5;
}

/* Cross-Browser PWA Installation Guide Modal */
.aosk-guide-modal-backdrop,
.aosk-ios-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.aosk-guide-modal-backdrop.show,
.aosk-ios-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.aosk-guide-modal-content,
.aosk-ios-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 28px 20px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .aosk-guide-modal-backdrop,
    .aosk-ios-modal-backdrop {
        align-items: center;
        padding: 20px;
    }

    .aosk-guide-modal-content,
    .aosk-ios-modal-content {
        border-radius: 20px;
        transform: translateY(20px) scale(0.96);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .aosk-guide-modal-backdrop.show .aosk-guide-modal-content,
    .aosk-ios-modal-backdrop.show .aosk-ios-modal-content {
        transform: translateY(0) scale(1);
    }
}

.aosk-guide-modal-backdrop.show .aosk-guide-modal-content,
.aosk-ios-modal-backdrop.show .aosk-ios-modal-content {
    transform: translateY(0);
}

.aosk-guide-modal-header,
.aosk-ios-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.aosk-guide-badge {
    display: inline-flex;
    align-items: center;
    background: #e8eff9;
    color: #1B4F9C;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.aosk-guide-modal-title,
.aosk-ios-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1B4F9C;
    margin: 0;
    line-height: 1.3;
}

.aosk-guide-btn-header-close {
    background: transparent;
    border: none;
    color: #adb5bd;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.aosk-guide-btn-header-close:hover {
    color: #495057;
}

.aosk-guide-steps-list {
    margin-bottom: 18px;
}

.aosk-guide-step,
.aosk-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.45;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.aosk-guide-step-num,
.aosk-ios-step-num {
    background: #1B4F9C;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.aosk-guide-step-text {
    flex: 1;
}

.aosk-guide-btn-close,
.aosk-ios-btn-close {
    width: 100%;
    background: #1B4F9C;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, filter 0.2s ease;
}

.aosk-guide-btn-close:hover,
.aosk-ios-btn-close:hover {
    background-color: #153e7a;
}

/* Standalone (Installed) Mode: Hide install prompts */
@media (display-mode: standalone) {
    .aosk-pwa-install-nav-item,
    .aosk-pwa-banner {
        display: none !important;
    }
}

.aosk-pwa-standalone .aosk-pwa-install-nav-item,
.aosk-pwa-standalone .aosk-pwa-banner {
    display: none !important;
}
