/* Welcome Animation Overlay - Goldie Greeting */

#gc-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

#gc-welcome-overlay.hidden {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.gc-welcome-container {
    text-align: center;
    max-width: 900px;
    width: 100%;
    position: relative;
    padding: 40px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gc-welcome-video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.gc-welcome-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(244, 163, 0, 0.3);
    background: #000;
    display: block;
}

.gc-welcome-video::-webkit-media-controls {
    display: none !important;
}

.gc-welcome-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.gc-welcome-caption {
    margin-top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    text-shadow: none;
    opacity: 0;
    animation: captionFadeIn 0.5s ease forwards;
    animation-delay: 4s;
}

@keyframes captionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gc-welcome-subtitle {
    margin-top: 10px;
    font-size: 20px;
    color: #000000;
    font-weight: 500;
    opacity: 0;
    animation: captionFadeIn 0.5s ease forwards;
    animation-delay: 4s;
}

.gc-welcome-unmute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(244, 163, 0, 0.9);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 163, 0, 0.4);
}

.gc-welcome-unmute-btn:hover {
    background: #FFB733;
    transform: scale(1.05);
}

.gc-welcome-unmute-btn.muted {
    opacity: 1;
}

.gc-welcome-unmute-btn.unmuted {
    opacity: 0.7;
}

.gc-welcome-languages {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: captionFadeIn 0.5s ease forwards;
    animation-delay: 4.5s;
}

.gc-welcome-lang-select {
    background: #2563eb;
    border: 4px solid #3b82f6;
    color: #ffffff;
    padding: 18px 55px 18px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    min-width: 250px;
    animation: pulsateBlue 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

@keyframes pulsateBlue {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
        border-color: #3b82f6;
        background: #2563eb;
    }
    50% {
        box-shadow: 0 0 35px rgba(59, 130, 246, 0.8);
        border-color: #60a5fa;
        background: #1d4ed8;
    }
}

.gc-welcome-lang-select:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.gc-welcome-lang-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.gc-welcome-lang-select option {
    background: #1e3a8a;
    color: #ffffff;
    padding: 14px;
    font-size: 20px;
}

.gc-welcome-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.gc-welcome-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.gc-welcome-replay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gc-welcome-replay:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(360deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gc-welcome-caption {
        font-size: 22px;
        margin-top: 15px;
    }

    .gc-welcome-subtitle {
        font-size: 16px;
        margin-top: 8px;
    }

    .gc-welcome-video {
        max-width: 95%;
    }

    .gc-welcome-unmute-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .gc-welcome-lang-select {
        padding: 16px 50px 16px 20px;
        font-size: 20px;
        min-width: 220px;
        border-width: 4px;
        background-size: 16px;
        background-position: right 18px center;
    }

    .gc-welcome-skip {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .gc-welcome-replay {
        top: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .gc-welcome-languages {
        margin-top: 15px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #gc-welcome-overlay,
    .gc-welcome-caption,
    .gc-welcome-languages {
        animation: none;
    }

    .gc-welcome-unmute-btn:hover,
    .gc-welcome-lang-btn:hover {
        transform: none;
    }
}
