/* assets/css/pwa-ios.css */

/* iOS Install Prompt Overlay */
.ios-pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    /* Visualize at bottom */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.ios-pwa-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* The prompt container */
.ios-pwa-prompt {
    width: 90%;
    max-width: 400px;
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    /* Rounded top corners */
    padding: 25px 20px 40px;
    /* Extra bottom padding for safe area */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    text-align: center;
    position: relative;
    /* Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ios-pwa-overlay.active .ios-pwa-prompt {
    transform: translateY(0);
}

/* Close button */
.ios-pwa-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ios-pwa-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Content */
.ios-pwa-header {
    margin-bottom: 20px;
}

.ios-pwa-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.ios-pwa-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

.ios-pwa-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Instructions Steps */
.ios-pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    text-align: right;
    width: 100%;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ios-step-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--turquoise, #00d9ff);
}

/* Icons are handled via FontAwesome classes directly in HTML */

.ios-step-text {
    font-size: 0.95rem;
    color: #fff;
    flex: 1;
}

.step-bold {
    font-weight: 700;
    color: var(--turquoise, #00d9ff);
}

/* Indicator Arrow tailored to point to the bottom bar */
.ios-pwa-arrow {
    margin-top: 20px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}