/* LumeriaTech Store - Additional Styles */

/* Enhanced Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 50%, rgb(15, 23, 42) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.enhanced-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(139, 69, 255, 0.3);
    border-top: 4px solid rgb(139, 69, 255);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: relative;
}

.enhanced-spinner::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(236, 72, 153, 0.3);
    border-top: 3px solid rgb(236, 72, 153);
    border-radius: 50%;
    top: 6px;
    left: 6px;
    animation: spin 2s linear infinite reverse;
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(-45deg, #8b45ff, #ec4899, #06b6d4, #10b981);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Store-specific enhancements */
.store-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(139, 69, 255, 0.15),
        0 15px 35px rgba(236, 72, 153, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced button styles */
.enhanced-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-btn::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.6s;
}

.enhanced-btn:hover::before {
    left: 100%;
}

/* Enhanced card hover effects */
.enhanced-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.enhanced-card:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(139, 69, 255, 0.15),
        0 15px 35px rgba(236, 72, 153, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Filter button enhancements */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Product price styling */
.product-price {
    background: linear-gradient(-45deg, #8b45ff, #ec4899, #06b6d4, #10b981);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease-in-out infinite;
    font-weight: 700;
}

/* Category badge styling */
.category-badge {
    background: linear-gradient(135deg, rgba(139, 69, 255, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(139, 69, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Enhanced grid layout for products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Loading animation for product cards */
.product-card-loading {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Floating action button for mobile */
.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(139, 69, 255, 0.3);
    transition: all 0.3s ease;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(139, 69, 255, 0.4);
}

/* Store statistics cards */
.stats-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(139, 69, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: rgba(139, 69, 255, 0.4);
    transform: translateY(-4px);
}

/* Testimonial slider */
.testimonial-slider {
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(139, 69, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
}

/* Search functionality */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 69, 255, 0.3);
    border-radius: 2rem;
    color: white;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(139, 69, 255, 0.6);
    box-shadow: 0 0 20px rgba(139, 69, 255, 0.2);
}

.search-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 69, 255, 0.6);
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: rgba(139, 69, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #8b45ff;
}

.breadcrumb-separator {
    color: rgba(148, 163, 184, 0.6);
}

/* Advanced Notification System - Ultra Modern Design */
.notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.98) 50%, 
        rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(139, 69, 255, 0.4);
    border-radius: 2rem;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(25px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(139, 69, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(120%) scale(0.8);
    opacity: 0;
    animation: slideInAdvanced 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 69, 255, 0.1), 
        transparent);
    animation: shimmer 2s infinite;
}

.notification::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #8b45ff, 
        #ec4899, 
        #06b6d4, 
        #10b981);
    background-size: 200% 100%;
    animation: gradient-border 3s linear infinite;
    border-radius: 2rem 2rem 0 0;
}

.notification:hover {
    transform: translateX(0) scale(1.02);
    border-color: rgba(139, 69, 255, 0.6);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 12px 35px rgba(139, 69, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.notification.fadeOut {
    animation: slideOutAdvanced 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(139, 69, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

.notification-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #ec4899, #06b6d4);
    z-index: -1;
    opacity: 0.3;
    animation: iconGlow 2s ease-in-out infinite;
}

.notification-icon i {
    color: white;
    font-size: 18px;
    z-index: 1;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.notification-message {
    color: rgba(203, 213, 225, 0.9);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    color: rgba(139, 69, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-time::before {
    content: '●';
    color: #10b981;
    font-size: 0.5rem;
    animation: statusBlink 2s infinite;
}

/* Advanced Animations - Mobile Optimized */
@keyframes slideInAdvanced {
    0% {
        transform: translateX(120%) scale(0.8) rotate(10deg);
        opacity: 0;
    }
    50% {
        transform: translateX(-5%) scale(1.05) rotate(-2deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideOutAdvanced {
    0% {
        transform: translateX(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(120%) scale(0.8) rotate(-10deg);
        opacity: 0;
    }
}

/* Mobile-specific slideIn animation */
@media (max-width: 640px) {
    @keyframes slideInAdvanced {
        0% {
            transform: translateX(100%) scale(0.9);
            opacity: 0;
        }
        100% {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes slideOutAdvanced {
        0% {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateX(100%) scale(0.9);
            opacity: 0;
        }
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(139, 69, 255, 0.4);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 12px 30px rgba(139, 69, 255, 0.6);
    }
}

@keyframes iconGlow {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
}

@keyframes statusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Success Notification Variant */
.notification.success .notification-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.success .notification-icon::before {
    background: linear-gradient(135deg, #10b981, #059669, #06b6d4);
}

/* Warning Notification Variant */
.notification.warning .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification.warning .notification-icon::before {
    background: linear-gradient(135deg, #f59e0b, #d97706, #ef4444);
}

/* Info Notification Variant */
.notification.info .notification-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.notification.info .notification-icon::before {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #8b45ff);
}

/* Mobile Responsive - FIXED FOR ANDROID */
@media (max-width: 640px) {
    .notification-container {
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
        bottom: 1rem;
        width: auto;
    }
    
    .notification {
        padding: 0.875rem 1rem;
        border-radius: 1.25rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.8rem;
        /* Fix untuk Android */
        -webkit-transform: translateX(120%) scale(0.8);
        transform: translateX(120%) scale(0.8);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform, opacity;
    }
    
    .notification-header {
        gap: 0.75rem;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .notification-icon i {
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 0.8125rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .notification-message {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
        /* Batas maksimal baris untuk mobile */
        -webkit-line-clamp: 3;
        max-height: 3.6em;
        overflow: hidden;
    }
    
    .notification-time {
        font-size: 0.65rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .notification-container {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 0.75rem;
    }
    
    .notification {
        padding: 0.75rem 0.875rem;
        border-radius: 1rem;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .notification-icon i {
        font-size: 12px;
    }
    
    .notification-title {
        font-size: 0.75rem;
    }
    
    .notification-message {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }
    
    .notification-time {
        font-size: 0.6rem;
    }
}

/* Android-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 640px) {
    .notification {
        /* Fix untuk Chrome Android */
        -webkit-transform: translateX(120%) scale(0.8);
        transform: translateX(120%) scale(0.8);
        -webkit-transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .notification::before {
        /* Disable shimmer on mobile untuk performa */
        display: none;
    }
    
    .notification-icon {
        /* Simplified animation untuk Android */
        animation: iconPulseMobile 3s ease-in-out infinite;
    }
    
    .notification-icon::before {
        /* Simplified glow untuk Android */
        animation: iconGlowMobile 3s ease-in-out infinite;
    }
}