/* PWA Install and Update Banners */
.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3EB489 0%, #2d8a5f 100%);
    color: white;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Josefin Sans', sans-serif;
}

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

.pwa-banner.update-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
}

.banner-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    max-width: 100%;
    margin: 0 auto;
}

.banner-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.banner-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}

.banner-text small {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.3;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.banner-actions button {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-install,
.btn-update {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-install:hover,
.btn-update:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-dismiss {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

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

/* Toast Notifications */
.pwa-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    max-width: 300px;
    word-wrap: break-word;
}

.pwa-toast.show {
    transform: translateX(0);
}

.pwa-toast.toast-success {
    background: #3EB489;
}

.pwa-toast.toast-error {
    background: #e74c3c;
}

.pwa-toast.toast-warning {
    background: #f39c12;
}

.pwa-toast.toast-info {
    background: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        padding: 12px 16px;
    }
    
    .banner-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .banner-text strong {
        font-size: 15px;
    }
    
    .banner-text small {
        font-size: 12px;
    }
    
    .banner-actions {
        gap: 6px;
        margin-left: 8px;
    }
    
    .banner-actions button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .btn-dismiss {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .pwa-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .banner-actions {
        align-self: stretch;
        justify-content: space-between;
        margin-left: 0;
    }
    
    .banner-actions button {
        flex: 1;
    }
    
    .btn-dismiss {
        flex: 0 0 auto;
        margin-left: 8px;
    }
}

/* Dark mode support */
[data-theme="dark"] .pwa-toast {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .pwa-toast.toast-success {
    background: #27ae60;
}

[data-theme="dark"] .pwa-toast.toast-error {
    background: #c0392b;
}

[data-theme="dark"] .pwa-toast.toast-warning {
    background: #d68910;
}

[data-theme="dark"] .pwa-toast.toast-info {
    background: #2980b9;
}

/* Animation keyframes */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

/* Accessibility improvements */
.pwa-banner button:focus,
.pwa-toast:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .pwa-banner,
    .pwa-toast {
        transition: none;
    }
    
    .btn-install:hover,
    .btn-update:hover {
        transform: none;
    }
}