/* 🚀 PWA INSTALL BUTTON & MODAL STYLES */

/* Floating Install Button */
.install-prompt-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    animation: slideInUp 0.4s ease-out;
}

.install-button-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.install-button-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.5);
}

.install-button-inner:active {
    transform: translateY(0);
}

.install-prompt-button svg {
    width: 20px;
    height: 20px;
}

/* Modal Overlay */
.install-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.install-modal.active {
    display: flex;
    align-items: flex-end;
    opacity: 1;
}

/* Modal Content */
.install-modal-content {
    background: var(--bg-secondary, #1a1f2e);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 40px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUpModal 0.4s ease-out;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary, #ffffff);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.install-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary, #ffffff);
}

/* Tabs */
.install-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color, #2a3142);
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary, #999999);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 13px;
}

.tab-btn.active {
    color: #007AFF;
    border-bottom-color: #007AFF;
}

.tab-btn:hover {
    color: var(--text-primary, #ffffff);
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.install-steps {
    line-height: 1.8;
}

.install-steps h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary, #ffffff);
}

.install-steps p {
    color: var(--text-secondary, #999999);
    margin-bottom: 16px;
    font-size: 14px;
}

.install-steps ol {
    list-style: decimal;
    padding-left: 20px;
    color: var(--text-secondary, #999999);
    font-size: 14px;
}

.install-steps li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.install-steps strong {
    color: var(--text-primary, #ffffff);
}

.install-note {
    background: rgba(0, 122, 255, 0.1);
    border-left: 3px solid #007AFF;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary, #999999);
}

/* Install Button in Modal */
.install-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 16px 0;
}

.install-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

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

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .install-prompt-button {
        bottom: 20px;
        right: 20px;
    }

    .install-button-inner {
        padding: 10px 16px;
        font-size: 13px;
    }

    .install-modal-content {
        border-radius: 20px 20px 0 0;
        padding: 24px 16px 32px;
    }

    .install-modal-content h2 {
        font-size: 20px;
    }

    .install-steps h3 {
        font-size: 16px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px 0;
    }
}
