/* Custom Styles for Best Furniture Deals St Louis */

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #ef4444;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

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

/* Deal Cards */
.deal-card {
    position: relative;
    overflow: hidden;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffecd2);
    border-radius: 12px;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
}

/* Floating Elements */
.floating-share {
    animation: bounce 2s infinite;
}

/* Scratch Card */
#scratch-area {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    position: relative;
    cursor: pointer;
    user-select: none;
}

#scratch-area:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Share Buttons */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-copy {
    background: #6b7280;
    color: white;
}

/* Countdown Timer */
.countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.countdown-item {
    text-align: center;
    padding: 1rem;
    background: var(--dark-color);
    color: white;
    border-radius: 8px;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deal-card {
        margin-bottom: 1rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .category-card-modern {
        margin-bottom: 1.5rem;
        transform: none !important;
    }
    
    .category-card-modern:hover {
        transform: translateY(-5px) !important;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .glass-card {
        backdrop-filter: blur(10px);
    }
    
    .badge-modern {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .cta-modern {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-neon {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* Hottest Deals Mobile Optimization */
@media (max-width: 640px) {
    #hottest-deals-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .deal-card {
        max-width: 100%;
        margin: 0 auto 1rem auto;
    }
    
    .deal-card .p-6 {
        padding: 1rem !important;
    }
    
    .deal-card h3 {
        font-size: 1.25rem !important;
    }
    
    .hover-lift:hover {
        transform: translateY(-3px) scale(1.01) !important;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0284c7);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #dc2626);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent-color), #059669);
}

/* Hero Section Enhancements */
.hero-overlay {
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.3)
    );
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.02);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.notification.success {
    background: var(--accent-color);
}

.notification.error {
    background: var(--secondary-color);
}

.notification.info {
    background: var(--primary-color);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.product-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-share-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Sticky Elements */
.sticky-cta {
    position: sticky;
    bottom: 20px;
    margin-top: 2rem;
    z-index: 30;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.bounce-animation {
    animation: bounce 1s infinite;
}

/* Modern UI Classes for 2050 Design */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.badge-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.category-card-modern {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.price-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.cta-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-neon {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-neon:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.input-modern {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #374151;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

/* Animation Stagger Classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.floating-delayed {
    animation: floating 3s ease-in-out infinite;
    animation-delay: -2s;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .category-card {
        background: #374151;
        color: white;
    }
    
    .product-card {
        background: #374151;
        color: white;
    }
    
    .price-card {
        background: #374151;
        color: white;
        border-left-color: var(--primary-color);
    }
    
    .category-card-modern {
        background: linear-gradient(145deg, #374151, #4b5563);
        color: white;
    }
}