/* CSS Loading Guard - Hide content until Tailwind is ready */
.css-loading-guard {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.css-loading-guard.css-ready {
    opacity: 1;
    pointer-events: auto;
}

/* Loading spinner styles - Always visible by default */
.loading-spinner {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffc90020, #ff090020, #0a00b220);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.loading-spinner.hidden {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffc900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prevent text selection and focus issues */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure no focus outlines on hero text */
.hero-text:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent any text selection on page load */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only after CSS is ready */
.css-loading-guard.css-ready body {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}
