/* 
 * Tropische Winkel Basnoe - Custom Styles
 * Premium styling voor een warme, authentieke Surinaamse sfeer
 */

/* Root Variables */
:root {
    --tropical-green: #006738;
    --tropical-lime: #7CB342;
    --tropical-yellow: #FDD835;
    --tropical-orange: #FB8C00;
    --tropical-red: #E53935;
    --tropical-cream: #FFF8E1;
    --tropical-sand: #F5E6D3;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Forceer geen horizontale scroll op het hele document */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Custom Font Styling */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display voor headings */
h1, h2, .font-playfair {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Selection Color */
::selection {
    background-color: var(--tropical-yellow);
    color: var(--tropical-green);
}

::-moz-selection {
    background-color: var(--tropical-yellow);
    color: var(--tropical-green);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--tropical-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--tropical-lime);
    border-radius: 6px;
    border: 2px solid var(--tropical-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tropical-green);
}

/* Navbar Effects */
#navbar {
    transition: all 0.3s ease;
}

/* Hero Section Background Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Tropical Pattern Overlay */
.tropical-pattern {
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M50 10 Q30 30 50 50 Q70 30 50 10 M50 50 Q30 70 50 90 Q70 70 50 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/%3E%3C/svg%3E');
    background-size: 100px 100px;
}

/* Button Hover Effects */
.btn-tropical {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-tropical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-tropical:hover::before {
    left: 100%;
}

/* Gallery Hover Effects */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Card Shadows */
.shadow-tropical {
    box-shadow: 0 20px 60px rgba(45, 80, 22, 0.15);
}

.shadow-tropical:hover {
    box-shadow: 0 30px 80px rgba(45, 80, 22, 0.25);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--tropical-green) 0%, var(--tropical-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Underline Effect */
.underline-tropical {
    position: relative;
    display: inline-block;
}

.underline-tropical::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tropical-yellow), var(--tropical-orange));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.underline-tropical:hover::after {
    width: 100%;
}

/* Decorative Leaf Pattern */
.leaf-pattern {
    position: relative;
}

.leaf-pattern::before {
    content: '🌿';
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    top: -20px;
    left: -20px;
    transform: rotate(-15deg);
}

.leaf-pattern::after {
    content: '🌴';
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    bottom: -20px;
    right: -20px;
    transform: rotate(15deg);
}

/* Loading Animation for Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Pulse Animation for USP Cards */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 179, 66, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(124, 179, 66, 0);
    }
}

/* Form Input Focus Effects */
input:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.2);
}

/* Success Message Animation */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    animation: slideInDown 0.5s ease-out;
}

/* Tropical Gradient Backgrounds */
.bg-gradient-tropical {
    background: linear-gradient(135deg, 
        var(--tropical-green) 0%, 
        var(--tropical-lime) 50%, 
        var(--tropical-yellow) 100%);
}

.bg-gradient-tropical-warm {
    background: linear-gradient(135deg, 
        var(--tropical-orange) 0%, 
        var(--tropical-yellow) 100%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    #scroll-to-top,
    .btn-tropical {
        display: none;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility - Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--tropical-yellow);
    outline-offset: 2px;
}

/* Skip to content link (for accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--tropical-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional - voor toekomst) */
@media (prefers-color-scheme: dark) {
    /* Voeg hier dark mode styles toe indien gewenst */
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--tropical-lime);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* WhatsApp Float Button (Optioneel) */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Belknop (rechtsonder, altijd zichtbaar) */
.call-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--tropical-green);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.call-float:hover {
    transform: translateY(-2px);
    background-color: var(--tropical-lime);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.call-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(124, 179, 66, 0.5);
    animation: pulse-glow 2s infinite;
}

/* Breadcrumb Styling */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: var(--tropical-lime);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--tropical-red);
    color: white;
}

.badge-popular {
    background: var(--tropical-yellow);
    color: var(--tropical-green);
}

.badge-fresh {
    background: var(--tropical-lime);
    color: white;
}

/* Testimonial Styles (voor toekomstige reviews) */
.testimonial {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--tropical-yellow);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Star Rating */
.star-rating {
    display: inline-flex;
    gap: 2px;
    color: var(--tropical-yellow);
}

/* Price Tag Styling */
.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--tropical-green);
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

/* Ribbon / Label */
.ribbon {
    position: absolute;
    top: 10px;
    right: -5px;
    padding: 5px 15px;
    background: var(--tropical-red);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ribbon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid #a02722;
    border-top: 5px solid #a02722;
}

/* Product Grid Enhancement */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Tropical Divider */
.divider-tropical {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--tropical-yellow), 
        var(--tropical-orange), 
        var(--tropical-yellow));
    margin: 2rem auto;
    border-radius: 2px;
}

/* Icon Bounce Animation */
@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-bounce {
    animation: bounce-icon 2s ease-in-out infinite;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tropical Box Shadow Variants */
.shadow-green {
    box-shadow: 0 10px 40px rgba(45, 80, 22, 0.2);
}

.shadow-yellow {
    box-shadow: 0 10px 40px rgba(253, 216, 53, 0.3);
}

.shadow-orange {
    box-shadow: 0 10px 40px rgba(251, 140, 0, 0.3);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Text Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background: linear-gradient(270deg, 
        var(--tropical-green), 
        var(--tropical-lime), 
        var(--tropical-yellow));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Performance Optimization */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-lg {
    text-shadow: 4px 4px 8px rgba(0,0,0,0.2);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Link Styling */
a {
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: none;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Aspect Ratio Utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

/* Container Max Widths */
.container-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Gap Utilities */
.gap-tropical {
    gap: 2rem;
}

@media (max-width: 768px) {
    .gap-tropical {
        gap: 1rem;
    }
}

/* Border Radius Utilities */
.rounded-tropical {
    border-radius: 1.5rem;
}

.rounded-tropical-lg {
    border-radius: 2rem;
}

/* Transform Utilities */
.rotate-3 {
    transform: rotate(3deg);
}

.rotate-n3 {
    transform: rotate(-3deg);
}

/* Z-Index Management */
.z-navbar {
    z-index: 50;
}

.z-modal {
    z-index: 100;
}

.z-tooltip {
    z-index: 200;
}

/* Custom Scrollbar for specific elements */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--tropical-lime);
    border-radius: 4px;
}

/* End of Styles */

/* ----------------------------------------
   Hamburger Button Animation
-----------------------------------------*/
.hamburger {
    width: 28px;
    height: 20px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* Actieve staat: verander in een X */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
