/* =======================================================
   FireUp - Animations (loading screen fire effects, transitions)
   ======================================================= */

#fireup-loader {
    position: fixed;
    inset: 0;
    background: #060302;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#fireup-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffb400, #ff6a1a, #ff2d2d, #ffb400);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fireup-shimmer 2.2s linear infinite, fireup-pulse 1.6s ease-in-out infinite;
}

@keyframes fireup-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes fireup-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.loader-flames {
    position: relative;
    width: 120px;
    height: 60px;
    margin-top: 20px;
}
.flame {
    position: absolute;
    bottom: 0;
    width: 14px;
    height: 40px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, #ffe08a, #ff9a2e 50%, #ff3d1a);
    filter: blur(0.5px);
    animation: flicker 0.9s ease-in-out infinite alternate;
    opacity: 0.9;
}
.flame:nth-child(1) { left: 10px; animation-delay: 0s; height: 34px; }
.flame:nth-child(2) { left: 34px; animation-delay: 0.15s; height: 48px; }
.flame:nth-child(3) { left: 58px; animation-delay: 0.3s; height: 40px; }
.flame:nth-child(4) { left: 82px; animation-delay: 0.45s; height: 30px; }

@keyframes flicker {
    0%   { transform: scaleY(1) translateY(0) skewX(0deg); opacity: 0.85; }
    50%  { transform: scaleY(1.15) translateY(-4px) skewX(2deg); opacity: 1; }
    100% { transform: scaleY(0.9) translateY(2px) skewX(-2deg); opacity: 0.8; }
}

.loader-progress {
    margin-top: 26px;
    width: 220px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffb400, #ff2d2d);
    animation: loader-fill 1.4s ease forwards;
}
@keyframes loader-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-tagline {
    margin-top: 14px;
    color: #b7a89f;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Page fade-in after loader */
.page-content {
    animation: fireup-fade-in 0.6s ease;
}
@keyframes fireup-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Subtle ember particles used behind the hero */
.embers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.ember {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff8a3d;
    box-shadow: 0 0 6px 2px rgba(255,138,61,0.6);
    animation: ember-rise linear infinite;
}
@keyframes ember-rise {
    0% { transform: translateY(0) translateX(0); opacity: 0.9; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}
