/**
 * Front Page (LP) Styles
 *
 * Additional styles for the landing page beyond Tailwind.
 * Most styles are handled by Tailwind CDN, but these provide
 * fallbacks and enhancements.
 *
 * @package SenCam
 */

/* Ensure React root takes full viewport */
#sencam-root {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Loading state before React hydrates */
#sencam-root:empty::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00D4FF;
    border-radius: 50%;
    animation: sencam-spin 1s linear infinite;
}

@keyframes sencam-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* WebGL fallback message */
.webgl-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 2rem;
    z-index: 100;
}

.webgl-fallback h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00D4FF;
}

.webgl-fallback p {
    color: #888;
    max-width: 400px;
    line-height: 1.6;
}

/* Smooth transitions for language switching */
[data-language] {
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    .bg-noise,
    .ambient-glow {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}
