/**
 * Smokeria Carioca - Design Modernizado
 * Tipografia melhorada e combinações de cores otimizadas
 */

/* Importar fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Variáveis de cores modernizadas */
:root {
    /* Cores base */
    --background: 10 10% 8%;
    --background-elevated: 10 10% 12%;
    --foreground: 0 0% 98%;
    --foreground-muted: 0 0% 70%;
    
    /* Cores primárias - Verde vibrante */
    --primary: 142 76% 42%;
    --primary-hover: 142 76% 36%;
    --primary-foreground: 0 0% 0%;
    
    /* Cores de acento */
    --accent: 280 70% 60%;
    --accent-foreground: 0 0% 100%;
    
    /* Cores de estado */
    --success: 142 76% 42%;
    --warning: 38 92% 50%;
    --error: 0 72% 51%;
    
    /* Bordas e divisores */
    --border: 0 0% 20%;
    --border-hover: 0 0% 30%;
    
    /* Cards e superfícies */
    --card: 10 10% 12%;
    --card-hover: 10 10% 15%;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    
    /* Raios de borda */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Tipografia melhorada */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    color: hsl(var(--foreground-muted));
    line-height: 1.7;
}

.text-primary {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(142 76% 50%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botões modernizados */
.btn-primary,
.btn-add-cart,
.single_add_to_cart_button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: hsl(var(--primary-foreground));
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(142 76% 38%) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.btn-primary::before,
.btn-add-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(142 76% 48%) 0%, hsl(142 76% 42%) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover::before,
.btn-add-cart:hover::before {
    opacity: 1;
}

.btn-primary:hover,
.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active,
.btn-add-cart:active {
    transform: translateY(0);
}

.btn-primary span,
.btn-add-cart span {
    position: relative;
    z-index: 1;
}

/* Header modernizado */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(20, 20, 22, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--primary));
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navegação */
.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    color: hsl(var(--foreground-muted));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(142 76% 50%) 100%);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

.nav-link:hover::after {
    width: 100%;
}

/* Botão do carrinho */
.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-cart:hover {
    background-color: hsl(var(--card-hover));
    border-color: hsl(var(--border-hover));
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(142 76% 48%) 100%);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Hero Section modernizado */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(10 10% 10%) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, hsla(142, 76%, 42%, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, hsla(280, 70%, 60%, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.smoke-effect {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E');
    opacity: 0.5;
    animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    margin-bottom: 2.5rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: hsl(var(--foreground-muted));
    line-height: 1.6;
}

/* Section Title */
.section-title {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--foreground-muted)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
}
