/* SchalkesOpa Shop - Glassmorphism Theme */
/* Datei: /assets/css/shop.css */

/* CSS Variables - falls nicht von index.css geerbt */
:root {
    --primary: #ff006e;
    --secondary: #00ff88;
    --accent: #3b82f6;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass: rgba(255, 255, 255, 0.05);
}

/* WICHTIG: Body Layout Fix */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Shop Container - VEREINFACHT */
.shop-wrapper {
    background-color: var(--dark);
    position: relative;
    padding: 120px 0 100px 0; /* Oben Platz für Header, unten für Footer */
    min-height: calc(100vh - 220px); /* Viewport minus geschätzte Header+Footer Höhe */
}

/* Magical Background Effects */
.shop-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

.shop-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Shop Header - Glassmorphism Style */
.shop-header {
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
    position: relative;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 30px;
    opacity: 0.5;
    z-index: -1;
    filter: blur(10px);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.shop-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 20px var(--primary)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px var(--primary)); }
}

.shop-header p {
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0.9;
}

/* Rabatt-Banner */
.discount-banner {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--light);
    text-align: center;
    padding: 15px 25px;
    border-radius: 50px;
    margin: 0 auto 40px;
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    opacity: 0.8;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.filter-tab:hover::before {
    width: 150%;
    height: 150%;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--light);
    opacity: 1;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--gradient);
    color: var(--light);
    border-color: transparent;
    opacity: 1;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

/* Produkt-Grid - WICHTIG: Kein margin-bottom! */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: translateX(0);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
}

.product-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.play-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.5);
}

.product-card:hover .play-preview {
    opacity: 1;
}

.play-preview:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-preview svg {
    width: 24px;
    height: 24px;
    fill: var(--light);
    margin-left: 3px;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--light);
}

.product-artist {
    color: var(--light);
    opacity: 0.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    text-decoration: line-through;
    color: var(--light);
    opacity: 0.5;
    font-size: 1rem;
    margin-right: 10px;
}

.add-to-cart {
    background: var(--gradient);
    color: var(--light);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.add-to-cart.added {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Special Badge */
.special-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: var(--light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.5);
}

/* Audio Preview */
.audio-preview {
    display: none;
}

/* Cursor Styles */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    background: rgba(255, 0, 110, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 10000;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Loading State */
.loading-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-wave {
    display: flex;
    gap: 5px;
}

.loading-wave div {
    width: 10px;
    height: 60px;
    background: var(--gradient);
    border-radius: 5px;
    animation: wave 1.2s ease-in-out infinite;
}

.loading-wave div:nth-child(2) { animation-delay: 0.1s; }
.loading-wave div:nth-child(3) { animation-delay: 0.2s; }
.loading-wave div:nth-child(4) { animation-delay: 0.3s; }
.loading-wave div:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Particles */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat 4s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(1);
    }
}

/* Floating animations */
.product-card:nth-child(odd) {
    animation: floatOdd 4s ease-in-out infinite;
}

.product-card:nth-child(even) {
    animation: floatEven 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatOdd {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes floatEven {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* FOOTER FIX - Das sollte es lösen! */
footer {
    position: relative !important;
    z-index: 10 !important;
    margin-top: 0 !important;
    background-color: #1a1a1a !important;
    width: 100% !important;
    clear: both !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-wrapper {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .shop-header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .shop-header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .filter-tabs {
        gap: 10px;
        padding: 0 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 0 15px;
    }
    
    .shop-header {
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .add-to-cart {
        width: 100%;
        padding: 14px;
    }
    
    .product-price {
        text-align: center;
    }
}


/* Füge dies zu deiner shop.css hinzu, falls noch nicht vorhanden */

/* Loading State Fix */
.loading-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark, #0a0a0a);
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-container.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Falls die Animation nicht funktioniert */
.loading-wave {
    display: flex;
    gap: 5px;
}

.loading-wave div {
    width: 10px;
    height: 60px;
    background: linear-gradient(135deg, #ff006e, #00ff88);
    border-radius: 5px;
    animation: wave 1.2s ease-in-out infinite;
}

.loading-wave div:nth-child(1) { animation-delay: 0s; }
.loading-wave div:nth-child(2) { animation-delay: 0.1s; }
.loading-wave div:nth-child(3) { animation-delay: 0.2s; }
.loading-wave div:nth-child(4) { animation-delay: 0.3s; }
.loading-wave div:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}