/* iShopZap Design System - Professional e-commerce platform colors */

:root {
    /* Brand Colors */
    --primary: 220 91% 48%; /* Blue gradient start */
    --primary-dark: 220 85% 35%; /* Blue gradient end */
    --brand-green: 125 85% 45%; /* Shopping bag green */
    --brand-green-dark: 125 85% 35%;
    
    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(220, 91%, 48%), hsl(220, 85%, 35%));
    --gradient-green: linear-gradient(135deg, hsl(125, 85%, 45%), hsl(125, 85%, 35%));
    --gradient-hero: linear-gradient(135deg, hsl(220, 91%, 48%) 0%, hsl(220, 85%, 35%) 50%, hsl(240, 85%, 40%) 100%);
    --gradient-success: linear-gradient(135deg, hsl(125, 85%, 45%), hsl(125, 85%, 35%));
    
    /* Shadows and Effects */
    --shadow-primary: 0 10px 30px -10px hsl(220 91% 48% / 0.3);
    --shadow-green: 0 4px 20px hsl(125 85% 45% / 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-green {
    background: var(--gradient-green);
}

.shadow-primary {
    box-shadow: var(--shadow-primary);
}

.shadow-green {
    box-shadow: var(--shadow-green);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.transition-smooth {
    transition: var(--transition-smooth);
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    min-height: 44px; /* Minimum touch target size */
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px hsl(220 91% 48% / 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-primary);
}

/* Modern Button Enhancements */
.btn-hero {
    background: var(--gradient-success);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-green);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-hero::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.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px hsl(125 85% 45% / 0.4);
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
        transform: scale(1.02);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-card);
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient-animated {
    background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Pricing Card Enhancements */
.pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: var(--transition-bounce);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.pricing-card.popular {
    border: 2px solid #3b82f6;
    box-shadow: var(--shadow-glow);
}

.pricing-card.popular::before {
    transform: scaleX(1);
    background: var(--gradient-success);
}

/* Feature List Enhancements */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.feature-list li:hover {
    transform: translateX(4px);
    color: #3b82f6;
}

.feature-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--gradient-success);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Hero Section Enhancements */
.hero-bg {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pricing-card {
        background: rgba(17, 24, 39, 0.95);
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    .feature-list li {
        color: #e5e7eb;
    }
    
    .feature-list li:hover {
        color: #60a5fa;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.pricing-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.btn-outline {
    border: 2px solid hsl(220, 91%, 48%);
    color: hsl(220, 91%, 48%);
    background: transparent;
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
    background: hsl(220, 91%, 48%);
    color: white;
}

.btn-outline:active {
    background: hsl(220, 85%, 35%);
    border-color: hsl(220, 85%, 35%);
}

/* Mobile-specific button optimizations */
@media (max-width: 768px) {
    .btn {
        min-height: 48px; /* Larger touch target on mobile */
        padding: 1rem 1.5rem;
        font-size: 16px;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 1rem 1.5rem;
    }
    
    .btn-hero {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }
    
    /* Enhanced active states for touch feedback */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Mobile Menu Animation */
.mobile-menu-open {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px; /* Minimum touch target size */
}

.form-input:focus {
    outline: none;
    border-color: hsl(220, 91%, 48%);
    box-shadow: 0 0 0 3px hsl(220 91% 48% / 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    transition: var(--transition-smooth);
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px; /* Minimum touch target size */
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: hsl(220, 91%, 48%);
    box-shadow: 0 0 0 3px hsl(220 91% 48% / 0.1);
}

/* Mobile-specific form optimizations */
@media (max-width: 768px) {
    .form-input,
    .form-select {
        padding: 1rem;
        font-size: 16px;
        min-height: 48px; /* Larger touch target on mobile */
        border-width: 2px; /* Thicker border for better visibility */
    }
    
    .form-input:focus,
    .form-select:focus {
        border-width: 2px;
        box-shadow: 0 0 0 4px hsl(220 91% 48% / 0.15);
    }
}

/* Lojas Demo Section Styles */
.lojas-demo-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid #f3f4f6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lojas-demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: hsl(220, 91%, 48%);
}

.lojas-demo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.lojas-demo-icon.hamburgueria {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.lojas-demo-icon.boutique {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
}

.lojas-demo-icon.chef {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.lojas-demo-icon.petshop {
    background: linear-gradient(135deg, #48cae4, #0077b6);
    color: white;
}

.lojas-demo-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.lojas-demo-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-demo {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-primary);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px hsl(220 91% 48% / 0.4);
    color: white;
    text-decoration: none;
}

.btn-demo:active {
    transform: translateY(0);
    box-shadow: var(--shadow-primary);
}

/* Mobile optimizations for lojas demo */
@media (max-width: 768px) {
    .lojas-demo-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .lojas-demo-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .btn-demo {
        padding: 1rem 1.5rem;
        font-size: 16px;
        min-height: 48px;
    }
    
    .btn-demo:hover {
        transform: none;
    }
    
    .btn-demo:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}