/* Custom Styles for Sit N Sleep 4 Less */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.5); }
    50% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.8); }
}

@keyframes scratch-reveal {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

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

/* Glowing buttons */
.glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Scratch card styles */
.scratch-card {
    position: relative;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    overflow: hidden;
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #9ca3af;
    cursor: grab;
    user-select: none;
    transition: all 0.3s ease;
}

.scratch-overlay:active {
    cursor: grabbing;
}

.scratch-overlay.scratching {
    animation: scratch-reveal 0.5s ease-out forwards;
}

/* Microsite cards */
.microsite-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.microsite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.microsite-card-header {
    height: 120px;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    position: relative;
    overflow: hidden;
}

.microsite-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

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

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '🛋️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.5;
}

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

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 60px;
}

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

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

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-limited {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-special {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.5rem;
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
    
    .microsite-card-header {
        height: 100px;
    }
    
    .product-image {
        height: 150px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .microsite-card,
    .product-card {
        border: 2px solid #000;
    }
}

/* 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;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Utility classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}