/**
 * Philippe Argento PWA Install Banner Styles
 */

/* Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pwa-install-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-install-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pwa-install-text strong {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2D2926;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-install-text span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.pwa-install-dismiss {
    padding: 8px 16px;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.pwa-install-dismiss:hover {
    color: #666;
}

.pwa-install-button {
    padding: 10px 20px;
    background: var(--pa-gold, #C5B8A5);
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pwa-install-button:hover {
    background: #A69B8A;
    transform: translateY(-1px);
}

/* Mobile adjustments - Kompakt egysoros elrendezés */
@media (max-width: 576px) {
    .pwa-install-banner {
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 10px;
    }

    .pwa-install-content {
        justify-content: flex-start;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    /* Kisebb ikon mobilon */
    .pwa-install-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    /* Kisebb szöveg mobilon */
    .pwa-install-text strong {
        font-size: 0.85rem;
    }

    .pwa-install-text span {
        display: none; /* Leírás elrejtése a kompaktság érdekében */
    }

    .pwa-install-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .pwa-install-dismiss {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .pwa-install-button {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

/* iOS Modal */
.pwa-ios-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pwa-ios-modal.show {
    opacity: 1;
    visibility: visible;
}

.pwa-ios-modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pwa-ios-modal.show .pwa-ios-modal-content {
    transform: scale(1);
}

.pwa-ios-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-ios-close:hover {
    background: #E8E8E8;
    color: #333;
}

.pwa-ios-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pwa-ios-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-ios-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D2926;
    margin-bottom: 8px;
}

.pwa-ios-modal p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.pwa-ios-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.pwa-ios-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.pwa-ios-steps li:last-child {
    border-bottom: none;
}

.pwa-ios-steps .step-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pa-gold, #C5B8A5);
    color: #FFFFFF;
    border-radius: 8px;
    flex-shrink: 0;
}

.pwa-ios-steps .step-icon i {
    font-size: 1rem;
}

.pwa-ios-ok {
    width: 100%;
    padding: 14px;
    background: var(--pa-gold, #C5B8A5);
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
}

.pwa-ios-ok:hover {
    background: #A69B8A;
}

/* Already installed - hide banner */
.pwa-installed .pwa-install-banner {
    display: none !important;
}
