/**
 * KVBE - Core Styles (Loader & i18n Switcher)
 * Luxury Dark & Matte Gold Design System
 */

:root {
    --concrete: #E6E5E3;
    --matte-gold: #C4A46A;
    --matte-gold-light: #DFC79B;
    --matte-gold-dark: #9E7D47;
    --travertine: #E3DCCF;
    --wood: #A67953;
    --ceramic: #535947;
    --marble: #2B2A28;
    --bg-dark: #141414;
}

/* ==========================================================================
   Luxury Page Loader
   ========================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

.page-loader::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 164, 106, 0.12) 0%, rgba(20, 20, 20, 0) 70%);
    pointer-events: none;
    filter: blur(40px);
}

.page-loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.page-loader.disabled,
body.kvbe-no-loader .page-loader {
    display: none !important;
}

.loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: kvbeLoaderPulse 2.2s ease-in-out infinite alternate;
}

.loader-logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(196, 164, 106, 0.35));
}

.loader-spinner {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner .spinner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(196, 164, 106, 0.18);
    border-top-color: var(--matte-gold, #C4A46A);
    border-right-color: rgba(196, 164, 106, 0.75);
    animation: kvbeLoaderSpin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-shadow: 0 0 18px rgba(196, 164, 106, 0.3);
}

@keyframes kvbeLoaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes kvbeLoaderPulse {
    0% { transform: scale(0.98); opacity: 0.92; }
    100% { transform: scale(1.02); opacity: 1; }
}

/* ==========================================================================
   Minimalist Sliding Language Switch (Zero Flags - Pure Luxury)
   ========================================================================== */
.lang-switcher {
    display: none !important;
}

.lang-switch-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 78px;
    height: 32px;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(196, 164, 106, 0.32);
    border-radius: 9999px;
    padding: 2px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.lang-switch:hover {
    border-color: rgba(196, 164, 106, 0.65);
    box-shadow: 0 4px 22px rgba(196, 164, 106, 0.25);
}

.lang-switch:active {
    transform: scale(0.95);
}

.lang-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: linear-gradient(135deg, rgba(196, 164, 106, 0.3) 0%, rgba(196, 164, 106, 0.16) 100%);
    border: 1px solid rgba(196, 164, 106, 0.7);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Slide to EN */
.lang-switch[data-lang="en"] .lang-switch-slider {
    transform: translateX(100%);
}

.lang-switch-opt {
    position: relative;
    z-index: 2;
    flex: 1;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(230, 229, 227, 0.45);
    pointer-events: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
}

.lang-switch[data-lang="pt"] .lang-switch-opt[data-lang="pt"],
.lang-switch[data-lang="en"] .lang-switch-opt[data-lang="en"] {
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(196, 164, 106, 0.45);
}

@media (max-width: 768px) {
    .lang-switch-wrap {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
    }
    
    .lang-switch {
        width: 68px;
        height: 28px;
    }
    
    .lang-switch-opt {
        font-size: 10.5px;
        letter-spacing: 0.06em;
    }
}

/* ==========================================================================
   Coming Soon Page - Luxury Campaign CTA Card
   ========================================================================== */
.coming-soon-cta {
    margin-top: 2.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    display: flex;
    justify-content: center;
}

.cta-card {
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(196, 164, 106, 0.35);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(196, 164, 106, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 164, 106, 0.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(196, 164, 106, 0.15);
}

.cta-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--matte-gold, #C4A46A);
    margin-bottom: 0.6rem;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cta-desc {
    font-size: 0.92rem;
    color: rgba(230, 229, 227, 0.85);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #DFC79B 0%, #C4A46A 50%, #9E7D47 100%);
    color: #141414;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(196, 164, 106, 0.35);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(196, 164, 106, 0.5);
    filter: brightness(1.06);
}

.cta-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .cta-card {
        padding: 1.25rem 1.25rem;
    }
    .cta-title {
        font-size: 1.1rem;
    }
}
