/**
 * Estilos para PWA Install Prompt - Nubly Video
 */

/* Banner de instalación */
.pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    transition: bottom 0.3s ease-out;
}

.pwa-install-banner.show {
    bottom: 0;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-icon {
    flex-shrink: 0;
}

.pwa-install-icon img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-text strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pwa-install-text span {
    display: block;
    color: #a0a0b0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.pwa-install-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-install-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #a0a0b0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pwa-install-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

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

.pwa-ios-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.pwa-ios-header {
    margin-bottom: 20px;
}

.pwa-ios-header img {
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pwa-ios-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.pwa-ios-steps {
    text-align: left;
    margin-bottom: 20px;
}

.pwa-ios-steps p {
    color: #a0a0b0;
    font-size: 14px;
    margin: 0 0 12px;
}

.pwa-ios-steps ol {
    margin: 0;
    padding-left: 20px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
}

.pwa-ios-steps li {
    margin-bottom: 8px;
}

.pwa-ios-steps strong {
    color: #ffffff;
}

.pwa-ios-steps svg {
    vertical-align: middle;
    margin-left: 4px;
    color: #6366f1;
}

.pwa-ios-close {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwa-ios-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Tema claro */
[data-theme="light"] .pwa-install-banner {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
    border-top-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pwa-install-text strong {
    color: #1a1a2e;
}

[data-theme="light"] .pwa-install-text span {
    color: #6b7280;
}

[data-theme="light"] .pwa-install-close {
    border-color: rgba(0, 0, 0, 0.1);
    color: #6b7280;
}

[data-theme="light"] .pwa-install-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a2e;
}

[data-theme="light"] .pwa-ios-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
}

[data-theme="light"] .pwa-ios-header h3 {
    color: #1a1a2e;
}

[data-theme="light"] .pwa-ios-steps p {
    color: #6b7280;
}

[data-theme="light"] .pwa-ios-steps ol {
    color: #374151;
}

[data-theme="light"] .pwa-ios-steps strong {
    color: #1a1a2e;
}

/* Responsive */
@media (max-width: 400px) {
    .pwa-install-content {
        gap: 10px;
    }

    .pwa-install-icon img {
        width: 40px;
        height: 40px;
    }

    .pwa-install-text strong {
        font-size: 14px;
    }

    .pwa-install-text span {
        font-size: 12px;
    }

    .pwa-install-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
