/* Gass.co.id Plugin Styles */

.gass-cta-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: gass-fade-in 0.5s ease-in-out;
}

.gass-cta-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 280px;
    min-width: 60px;
    overflow: hidden;
}

.gass-cta-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.gass-cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

.gass-cta-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.gass-cta-text {
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gass-cta-sticky {
        bottom: 15px;
        right: 15px;
    }
    
    .gass-cta-button {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 200px;
    }
    
    .gass-cta-icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
}

/* Extra small screens - show only icon */
@media (max-width: 480px) {
    .gass-cta-button {
        padding: 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
        min-width: auto;
    }
    
    .gass-cta-text {
        display: none;
    }
    
    .gass-cta-icon {
        margin-right: 0;
        width: 24px;
        height: 24px;
    }
}

/* Animation keyframes */
@keyframes gass-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse animation for attention */
@keyframes gass-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Add pulse animation on load */
.gass-cta-button.gass-pulse {
    animation: gass-pulse 2s infinite;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gass-cta-button {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    
    .gass-cta-button:hover {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gass-cta-button {
        border: 2px solid #ffffff;
        font-weight: 600;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gass-cta-button {
        transition: none;
    }
    
    .gass-cta-sticky {
        animation: none;
    }
    
    .gass-cta-button.gass-pulse {
        animation: none;
    }
}

/* Scroll bounce effect (optional) */
.gass-cta-sticky.gass-scroll-bounce {
    animation: gass-bounce 0.2s ease-out;
}

@keyframes gass-bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure sticky is always visible */
.gass-cta-sticky {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Print styles - hide CTA when printing */
@media print {
    .gass-cta-sticky {
        display: none !important;
    }
}
