/**
 * Glass Morphism Effects für Marleo Handarbeit Shop
 * Behält die vorhandenen Farben (#ff66b2, #3399ff) bei
 */

/* Background mit Gradient Overlay */
body {
    position: relative;
    background: url('https://images.unsplash.com/photo-1515488042361-ee00e0ddd4e4?w=1920&q=80') center/cover no-repeat fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 102, 178, 0.15) 0%, rgba(51, 153, 255, 0.15) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Animated floating circles */
.glass-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.glass-circle:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 10%; animation-delay: 0s; }
.glass-circle:nth-child(2) { width: 80px; height: 80px; top: 20%; right: 15%; animation-delay: 1.5s; }
.glass-circle:nth-child(3) { width: 120px; height: 120px; bottom: 15%; left: 20%; animation-delay: 3s; }
.glass-circle:nth-child(4) { width: 60px; height: 60px; bottom: 30%; right: 10%; animation-delay: 4.5s; }
.glass-circle:nth-child(5) { width: 90px; height: 90px; top: 50%; left: 5%; animation-delay: 2s; }
.glass-circle:nth-child(6) { width: 110px; height: 110px; top: 70%; right: 8%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(0px) translateX(-10px); }
    75% { transform: translateY(15px) translateX(10px); }
}

/* Hero Section Glass Effect */
.hero-section {
    position: relative;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Product Cards Glass Effect */
.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-10px) !important;
}

/* Container Glass Effects */
.container {
    position: relative;
}

/* Featured Products Section */
.featured-products {
    position: relative;
}

/* Category Filter Buttons Glass Effect */
.category-btn,
.filter-btn {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(51, 153, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.category-btn:hover,
.category-btn.active,
.filter-btn:hover {
    background: rgba(51, 153, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border-color: rgba(51, 153, 255, 0.8) !important;
}

/* Header Glass Effect */
.header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Products Container Glass */
.products-container,
.product-detail-container {
    position: relative;
}

/* Checkout/Cart Glass Effects */
.checkout-container,
.cart-container {
    position: relative;
}

/* Form Elements Glass Effect */
.glass-input {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(51, 153, 255, 0.5) !important;
}

/* Section Backgrounds */
section {
    position: relative;
}

/* Product Detail Glass */
.product-detail-grid {
    position: relative;
}

.product-images,
.product-info {
    position: relative;
}

.main-image,
.product-thumbnails {
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Configurator Glass Effect */
.configurator {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
}

.config-section {
    margin-bottom: 25px;
}

.size-option,
.fabric-option {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(51, 153, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.size-option:hover,
.size-option.selected,
.fabric-option:hover,
.fabric-option.selected {
    background: rgba(51, 153, 255, 0.15) !important;
    border-color: rgba(51, 153, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
}

/* Buttons Glass Effect */
.add-to-cart-btn,
.cta-button,
.btn-primary {
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.add-to-cart-btn:hover,
.cta-button:hover,
.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Price Display Glass */
.product-price {
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

/* Breadcrumb Glass */
.breadcrumb {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* Search Bar Glass */
.search-bar input {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(51, 153, 255, 0.5) !important;
}

/* Categories Filter Glass */
.categories-filter {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Order Summary Glass (Checkout) */
.order-summary {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Checkout Form Glass */
.checkout-form {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Page Header Glass */
.page-header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body::before {
        background: linear-gradient(135deg, rgba(255, 102, 178, 0.2) 0%, rgba(51, 153, 255, 0.2) 100%);
    }

    .glass-circle {
        display: none; /* Hide circles on mobile for performance */
    }

    .product-card {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Disable glass effects if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .glass-circle {
        animation: none;
    }

    * {
        transition: none !important;
    }
}
