/* ===============================================
   BESTMEDICURES - PWA Install Button Styles
   =============================================== */

/* PWA Install Button Container */
.header-pwa-install {
    margin-right: 15px;
}

/* PWA Install Button Styling */
.header-pwa-install .cart-item {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* PWA Install Button Hover State */
.header-pwa-install .cart-item:hover {
    background: linear-gradient(135deg, #218838, #1ea471);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white !important;
    text-decoration: none;
}

/* PWA Install Button Icon Container */
.header-pwa-install .cart-item span:first-child {
    margin-right: 6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PWA Install Button SVG Icon */
.header-pwa-install .cart-item svg {
    fill: white;
    width: 18px;
    height: 18px;
}

/* PWA Install Button Text */
.header-pwa-install .cart-text {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ===============================================
   Responsive Design
   =============================================== */

/* Hide text on small screens to save space */
@media (max-width: 768px) {
    .header-pwa-install .cart-text {
        display: none;
    }
    .header-pwa-install .cart-item {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
    .header-pwa-install .cart-item span:first-child {
        margin-right: 0;
    }
}

/* ===============================================
   Additional PWA Enhancements
   =============================================== */

/* PWA Install Banner (if needed) */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.pwa-install-banner.show {
    display: flex;
}

.pwa-install-banner:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

/* PWA Install Banner Button */
.pwa-banner-btn {
    background: white;
    color: #28a745;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-banner-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* PWA Status Indicators */
.pwa-status {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    display: none;
}

.pwa-status.online {
    color: #28a745;
}

.pwa-status.offline {
    color: #dc3545;
}

/* PWA Offline Indicator */
.pwa-offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 8px;
    z-index: 1002;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

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

/* ===============================================
   Mobile PWA Install Styles
   =============================================== */

/* Mobile PWA Install in Menu */
#mobile-pwa-install a {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border-radius: 6px !important;
    margin: 10px 0 !important;
    transition: all 0.3s ease;
}

#mobile-pwa-install a:hover {
    background: linear-gradient(135deg, #218838, #1ea471) !important;
    transform: translateY(-1px);
}

/* ===============================================
   Accessibility Improvements
   =============================================== */

/* Focus states for PWA install button */
.header-pwa-install .cart-item:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header-pwa-install .cart-item {
        background: #000 !important;
        border: 2px solid #fff;
    }
    
    .header-pwa-install .cart-item:hover {
        background: #333 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .header-pwa-install .cart-item {
        transition: none;
    }
    
    .header-pwa-install .cart-item:hover {
        transform: none;
    }
    
    .pwa-install-banner {
        transition: none;
    }
    
    .pwa-install-banner:hover {
        transform: translateX(-50%);
    }
}