/* Custom styles for Bodofa Memorial School design system */

/* Global visual texture noise overlay (0.05 opacity) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
}

/* Glassmorphic panels */
.panel-glass {
    background: rgba(251, 246, 238, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(58, 46, 40, 0.08);
}

.panel-glass-dark {
    background: rgba(58, 46, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 246, 238, 0.08);
}

/* Interactive elements */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
    z-index: 1;
}

.btn-magnetic:hover {
    transform: scale(1.03);
}

.btn-magnetic:active {
    transform: scale(0.98);
}

/* Sliding background for magnetic buttons */
.btn-magnetic .slide-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-magnetic:hover .slide-bg {
    left: 0;
}

/* Lift on hover for text links and simple nodes */
.lift-hover {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}

.lift-hover:hover {
    transform: translateY(-2px);
}

/* Custom CSS spring transition for card shuffling */
.shuffle-card-spring {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hide scrollbar helper */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Accessibility Focus Ring Outline */
.focus-ring-outline:focus-visible {
    outline: 3px solid #3E8FB0;
    outline-offset: 2px;
}

/* Floating animations for badges and interactive cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float-delayed 6s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────────
   BMS IDENTITY CREST PANEL — Animation Keyframes
   ────────────────────────────────────────────────────────────── */

/* Slow clockwise rotation — outermost diamond ring & glow orb */
@keyframes crest-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gentle opacity breath — concentric circle rings */
@keyframes crest-fade-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* Subtle scale breath — inner diamond border */
@keyframes crest-breathe {
    0%, 100% { transform: scale(1);     }
    50%       { transform: scale(1.055); }
}

/* Shimmer light sweep across the crest surface */
@keyframes crest-shimmer {
    0%        { transform: translateX(-120%); opacity: 0; }
    15%       { opacity: 0.22; }
    85%       { opacity: 0.22; }
    100%      { transform: translateX(120%);  opacity: 0; }
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
        transform: none !important;
        filter: none !important;
    }
}
