@tailwind base;
@tailwind components;
@tailwind utilities;

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    background-color: theme('colors.soft-cream');
}

.squishy-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.squishy-btn:active {
    transform: scale(0.96);
    box-shadow: theme('boxShadow.tactile-pressed');
}

.tilt-card {
    transition: transform 0.3s ease-out;
}
.tilt-card:hover {
    transform: rotate(-1deg) scale(1.02);
}

.bg-pattern {
    background-image: radial-gradient(theme('colors.rose-gold') 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    opacity: 0.2;
}

/* Base styles para el fondo animado que se usaba antes (si se requiere) */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(229, 177, 161, 0.1);
}

/* Efecto de candado para la versión demo */
.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 237, 0.85); /* digital-peach */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
    z-index: 10;
}

.locked-content {
    text-align: center;
    color: theme('colors.primary');
    animation: float 3s ease-in-out infinite;
}

.glowing-icon {
    font-size: 3rem;
    color: theme('colors.rose-gold');
    filter: drop-shadow(0 0 10px rgba(229, 177, 161, 0.5));
    margin-bottom: 1rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Custom styles for cards (Elegir Ocasión) */
.phygital-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 237, 0.6) 100%);
    box-shadow: 0 10px 30px -10px rgba(229, 177, 161, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.phygital-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(229, 177, 161, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.phygital-card.selected {
    border: 2px solid theme('colors.rose-gold');
    background: theme('colors.digital-peach');
    box-shadow: 0 0 20px rgba(229, 177, 161, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ribbon-progress {
    height: 4px;
    background: theme('colors.surface-container');
    border-radius: theme('borderRadius.full');
    overflow: hidden;
    position: relative;
}

.ribbon-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, theme('colors.rose-gold'), theme('colors.primary'));
    border-radius: theme('borderRadius.full');
    width: 33%;
    transition: width 0.5s ease;
}

/* Custom map texture for cards */
.texture-birthday { background-image: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 60%); }
.texture-love { background-image: radial-gradient(circle at 50% 50%, rgba(255, 77, 77, 0.05) 0%, transparent 60%); }
.texture-grad { background-image: radial-gradient(circle at 50% 50%, rgba(125, 84, 72, 0.1) 0%, transparent 60%); }
.texture-party { background-image: radial-gradient(circle at 50% 50%, rgba(230, 230, 250, 0.3) 0%, transparent 60%); }
.texture-xmas { background-image: radial-gradient(circle at 50% 50%, rgba(186, 23, 36, 0.05) 0%, transparent 60%); }

/* Utilities from personalizar-regalo */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.btn-tactile {
    box-shadow: 0 4px 0 0 theme('colors.outline-variant');
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-tactile:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 0 theme('colors.outline-variant');
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Utilities from mensaje-y-envio */
.handwritten-font {
    font-family: 'Caveat', cursive;
}

.cinematic-lighting {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 80% 90%, rgba(229, 177, 161, 0.3) 0%, transparent 50%);
}

.soft-card-shadow {
    box-shadow: 0 10px 30px -5px rgba(229, 177, 161, 0.15), 0 4px 6px -2px rgba(229, 177, 161, 0.05);
}

.dopamine-glow {
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4), inset 0 -2px 5px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.dopamine-glow:hover {
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.6), inset 0 -2px 5px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.dopamine-glow:active {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4), inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ribbon-progress-animated {
    background: linear-gradient(90deg, #E5B1A1 0%, #ffdbd0 50%, #E5B1A1 100%);
    background-size: 200% 100%;
    animation: shimmer-bg 2s infinite linear;
}

@keyframes shimmer-bg {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Background Particles Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,215,0,0.8) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
    opacity: 0.6;
}
