/* Global Fixed Bar Custom Styles */

/* Smooth animations */
#global-fixed-bar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for buttons */
#global-fixed-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#global-fixed-bar .flex-col {
    align-items: center;
    text-align: center;    
}

/* CSS Custom Properties for fluid design */
:root {
    --global-bar-gap: clamp(1rem, 2vw, 3rem);
    --global-bar-padding: clamp(0.5rem, 1.5vw, 1.5rem);
    --global-bar-content-gap: clamp(1.25rem, 3vw, 3.125rem);
    --global-bar-section-gap: clamp(1rem, 2.5vw, 2.5rem);
}

/* Fluid spacing between main sections */
#global-fixed-bar > div > div > div {
    gap: var(--global-bar-section-gap);
}

/* Responsive flex behavior */
@media (min-width: 1024px) {
    #global-fixed-bar .lg\:flex-shrink-0 {
        flex-shrink: 0;
    }
}

@media (max-width: 1023px) {
    #global-fixed-bar .lg\:flex-shrink-0 {
        flex-shrink: 1;
    }
}

/* Badge animations */
#global-fixed-bar + div[class*="fixed"] {
    animation: globalBadgePulse 2s ease-in-out infinite;
}

@keyframes globalBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glassmorphism effect */
#global-fixed-bar {
    background: rgba(237, 240, 229, 0.80);
    backdrop-filter: blur(27.5px);
    -webkit-backdrop-filter: blur(27.5px);
}

/* Enhanced shadows */
#global-fixed-bar {
    box-shadow: 
        0 -4px 6px -1px rgba(0, 0, 0, 0.1),
        0 -2px 4px -1px rgba(0, 0, 0, 0.06),
        0 -1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Price highlighting */
#global-fixed-bar .text-primary {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover states for interactive elements */
#global-fixed-bar a:hover,
#global-fixed-bar button:hover {
    transition: all 0.3s ease;
}

/* Loading state for buttons */
#global-fixed-bar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
#global-fixed-bar button:focus,
#global-fixed-bar a:focus {
    outline: 2px solid #557255;
    outline-offset: 2px;
}

/* Trustpilot Rating Sophistication */
#global-fixed-bar .flex.items-center.space-x-2 {
    letter-spacing: 0.025em;
}

/* Make Trustpilot clickable */
#global-fixed-bar #global-fixed-bar-trustpilot {
    cursor: pointer;
}

#global-fixed-bar .text-sm.font-medium {
    font-weight: 500;
    letter-spacing: 0.05em;
}

#global-fixed-bar .text-sm.text-gray-500 {
    letter-spacing: 0.03em;
    opacity: 0.8;
}

/* Enhanced star styling */
#global-fixed-bar .fa-star {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.2s ease;
}

#global-fixed-bar .fa-star:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Trustpilot responsive layout for small screens */
@media (max-width: 1300px) {
    #global-fixed-bar #global-fixed-bar-trustpilot {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    #global-fixed-bar #global-fixed-bar-trustpilot .flex {
        justify-content: center !important;
    }
}

/* Hover effects for Trustpilot link */
#global-fixed-bar a:hover .fa-star {
    color: #059669;
}

#global-fixed-bar a:hover span {
    color: #1f2937;
}

/* Button hover effects */
#global-fixed-bar a[class*="bg-primary"]:hover {
    background-color: #557255 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 114, 85, 0.3);
}

/* Video icon hover effect */
#global-fixed-bar a:hover video {
    transform: scale(2.1) !important;
}

/* Text hover effects */
#global-fixed-bar p:hover {
    color: #374151;
    transition: color 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    
    #global-fixed-bar .bar-content {
        gap: 1rem !important;
    }
    
    #global-fixed-bar .text-sm {
        font-size: 0.875rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1440px) {

    
    #global-fixed-bar .bar-content {
        gap: 3rem !important;
    }
}
