/* ============================================
   TRIG - Custom Styles
   ============================================ */

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
#navbar.scrolled nav {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    border-color: rgb(226 232 240 / 0.8);
}

/* Mobile menu transition */
#mobile-menu {
    transform-origin: top;
    animation: slideDown 0.2s ease-out;
}

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

/* Form focus glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgb(249 115 22 / 0.1);
}

/* Smooth scrollbar */
html {
    scroll-padding-top: 100px;
}

/* Star fill for Lucide icons */
[data-lucide="star"].fill-amber-400 {
    fill: #fbbf24;
}

/* Chart bar hover */
.fade-in [style*="height"] {
    transition: height 0.3s ease-out;
}
