/* ==========================================================================
   PAGE LOADER & COOKIE BANNER - CORPORATE STYLE
   ========================================================================== */

/* Page Loader - Modern Glassmorphism */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
}

.page-loader.is-active {
    opacity: 1;
    visibility: visible;
}

/* Colored bubbles matching design system */
.page-loader::before {
    content: '';
    position: absolute;
    top: -90px;
    left: -90px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(23, 94, 230, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: bubble-float-1 8s ease-in-out infinite;
}

.page-loader::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: bubble-float-2 10s ease-in-out infinite;
}

.page-loader__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-loader__inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: bubble-float-3 6s ease-in-out infinite;
}

.page-loader__flame {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: center;
}

.flame {
    width: 8px;
    height: 32px;
    background: var(--primary-blue, #175ee6);
    border-radius: 4px;
    animation: flame-bounce 0.6s ease-in-out infinite;
}

.flame-1 {
    animation-delay: 0s;
}

.flame-2 {
    animation-delay: 0.15s;
}

.flame-3 {
    animation-delay: 0.3s;
}

@keyframes flame-bounce {
    0%, 100% {
        height: 32px;
        opacity: 1;
    }
    50% {
        height: 12px;
        opacity: 0.6;
    }
}

/* Bubble animations */
@keyframes bubble-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

@keyframes bubble-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -20px) scale(1.15);
    }
}

@keyframes bubble-float-3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(calc(-50% + 10px), calc(-50% + 10px)) scale(1.2);
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 600px;
    width: calc(100% - 2rem);
    background: var(--glass-bg-hover, rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border, rgba(226, 232, 240, 0.6));
    border-radius: var(--border-radius-sm, 4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-banner:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner__text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    margin-bottom: 0.375rem;
}

.cookie-banner__text p {
    font-size: 0.8125rem;
    color: var(--text-medium, #64748b);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-sm, 4px);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cookie-banner__btn {
    background: var(--primary-blue, #175ee6);
    color: white;
}

.cookie-banner__btn:hover {
    background: #0f4bc5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 94, 230, 0.3);
}

.cookie-banner__btn--secondary {
    background: transparent;
    color: var(--text-dark, #1e293b);
    border: 1px solid var(--glass-border, rgba(226, 232, 240, 0.6));
}

.cookie-banner__btn--secondary:hover {
    background: rgba(23, 94, 230, 0.06);
    border-color: rgba(23, 94, 230, 0.2);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Responsive */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 1rem;
        width: calc(100% - 1rem);
    }
    
    .cookie-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner__actions {
        width: 100%;
    }
    
    .cookie-banner__btn {
        flex: 1;
    }
}
