/**
 * TIMIAKS - Sistema de Diseño Cómico Neobrutalista
 * Estilos globales, fondos de trama halftone y animaciones de respiración.
 */

/* 1. Importación de Fuentes y Material Icons */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* 2. Variables de Color del Tema */
:root {
    --primary: #55007b;
    --primary-container: #750ca6;
    --on-surface: #1f1922;
    --surface: #fff7fc;
    --secondary-fixed: #f6d9ff;
    --on-secondary-fixed: #2e0643;
}

/* 3. Estilos Base del Cuerpo */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--on-surface);
    color: #ffffff;
    overflow-x: hidden;
}

/* 4. Fondo de Trama Halftone y Fondo Violeta Cómic */
.comic-sunburst {
    background: radial-gradient(circle at 50% 50%, rgba(117, 12, 166, 0.85) 0%, rgba(31, 25, 34, 0.98) 80%);
}

.halftone-bg {
    background-image: radial-gradient(currentColor 1px, transparent 0);
    background-size: 14px 14px;
    opacity: 0.15;
}

.classified-pattern {
    background-color: #ebdfeb;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(85, 0, 123, 0.05) 35px, rgba(85, 0, 123, 0.05) 70px);
}

/* 5. Sombras Rígidas Neobrutalistas (Punch Shadows) */
.punch-shadow {
    box-shadow: 8px 8px 0px 0px #1f1922;
}

.punch-shadow-light {
    box-shadow: 8px 8px 0px 0px #ffffff;
}

.punch-shadow-gold {
    box-shadow: 8px 8px 0px 0px #fbbf24;
}

.punch-shadow-sm {
    box-shadow: 4px 4px 0px 0px #1f1922;
}

.skew-tag {
    transform: rotate(-3deg);
}

/* 6. Animaciones Keyframes de Respiración para Logo y Título */
@keyframes breathing-logo {
    0%, 100% {
        transform: scale(1) translateY(0px);
        filter: drop-shadow(0px 8px 20px rgba(85, 0, 123, 0.6));
    }
    50% {
        transform: scale(1.05) translateY(-8px);
        filter: drop-shadow(0px 20px 35px rgba(246, 217, 255, 0.4));
    }
}

.animate-breathing-logo {
    animation: breathing-logo 4s ease-in-out infinite;
}

@keyframes breathing-title {
    0%, 100% {
        transform: scale(1) rotate(-3deg);
    }
    50% {
        transform: scale(1.06) rotate(-2deg);
    }
}

.animate-breathing-title {
    animation: breathing-title 3s ease-in-out infinite;
}

/* 7. Física de Presión de Botones (Button Press) */
.btn-press {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-press:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px #1f1922 !important;
}

/* 8. Superposición y Desplazamiento de Modales */
.modal-backdrop {
    background-color: rgba(31, 25, 34, 0.88);
    backdrop-filter: blur(8px);
}

.cart-drawer-panel {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-panel.translate-x-full {
    transform: translateX(100%);
}

.cart-drawer-panel.translate-x-0 {
    transform: translateX(0);
}
