/* PWA Banner Styles */
#pwa-install-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

#pwa-install-banner.show {
    bottom: 20px;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-banner-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: white;
    padding: 5px;
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.pwa-banner-text span {
    font-size: 12px;
    opacity: 0.9;
}

.pwa-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pwa-install-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
}

.pwa-dismiss-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwa-dismiss-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Push Notification Prompt */
#push-notification-prompt {
    position: fixed;
    top: -100px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: all 0.3s ease;
}

#push-notification-prompt.show {
    top: 20px;
}

[data-theme="dark"] #push-notification-prompt {
    background: var(--bg-secondary);
}

.push-prompt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.push-prompt-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
}

.push-prompt-text {
    margin-bottom: 20px;
}

.push-prompt-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

[data-theme="dark"] .push-prompt-text strong {
    color: var(--text-color);
}

.push-prompt-text span {
    font-size: 13px;
    color: #666;
}

.push-prompt-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.push-accept-btn {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.push-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.push-dismiss-btn {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .push-dismiss-btn {
    background: var(--bg-primary);
    color: var(--text-color);
}

.push-dismiss-btn:hover {
    background: #e0e0e0;
}

/* iOS Install Instructions */
.ios-install-instructions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.ios-install-instructions.show {
    transform: translateY(0);
}

.ios-install-steps {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.ios-step {
    text-align: center;
}

.ios-step i {
    font-size: 24px;
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.ios-step span {
    font-size: 13px;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    #pwa-install-banner {
        width: calc(100% - 20px);
        padding: 12px 15px;
    }
    
    .pwa-banner-content {
        gap: 10px;
    }
    
    .pwa-banner-icon img {
        width: 40px;
        height: 40px;
    }
    
    .pwa-banner-text strong {
        font-size: 14px;
    }
    
    .pwa-install-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    #push-notification-prompt {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}
