/* ==========================================================================
   Shared initial loader
   ========================================================================== */

.initial-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--footer-bg-start, #2d3e50) 0%,
        var(--footer-bg-end, #34495e) 100%
    );
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility .5s ease;
}

.initial-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo-img {
    width: auto;
    height: 90px;
    margin-bottom: 15px;
    animation: initial-loader-pulse 1.5s infinite ease-in-out;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.splash-logo {
    margin-bottom: 30px;
    color: var(--gold, #f8ca1b);
    font-size: 48px;
    font-weight: 900;
    animation: initial-loader-pulse 1.5s infinite ease-in-out;
}

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, .1);
    border-top-color: var(--gold, #f8ca1b);
    border-radius: 50%;
    animation: initial-loader-spin 1s linear infinite;
}

.splash-text {
    margin-top: 20px;
    color: #ccc;
    font-size: 14px;
}

@keyframes initial-loader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: .8; }
}

@keyframes initial-loader-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .splash-logo-img {
        height: 78px;
    }

    .splash-logo {
        font-size: 42px;
    }
}
