/* ============================================ */
/* Happy Life Clube de Benefícios              */
/* Custom Styles                                */
/* ============================================ */

/* ===== Base ===== */
[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(204, 9, 47, 0.15);
    color: #5c0415;
}

html.dark ::selection {
    background-color: rgba(204, 9, 47, 0.3);
    color: #ffc1cb;
}

/* ===== Transitions ===== */
body, header, main, section, div, footer {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

/* ===== Animations ===== */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-scale {
    animation: fade-in-scale 0.4s ease-out;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.1) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Dark mode scrollbar */
html.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 60;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    max-width: 320px;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html.dark .toast {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cc092f, #b80829);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-text strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

html.dark .toast-text strong {
    color: #f3f4f6;
}

.toast-text span {
    font-size: 11px;
    color: #94a3b8;
}

/* ===== Phone Input Mask ===== */
input[type="tel"] {
    font-variant-numeric: tabular-nums;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #cc092f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Print styles ===== */
@media print {
    nav,
    .fixed,
    footer,
    .toast {
        display: none !important;
    }
}
