@import "tailwindcss";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
}

/* 
 * Prevent flash of unstyled/incorrect content
 * v-cloak hides elements until Vue is fully mounted
 */
[v-cloak] {
    display: none !important;
}

/* ============ FUTURISTIC ORBIT LOADING ============ */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-card {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none;
    border-radius: 0;
}

/* Core pulse */
.loading-card::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.2);
    animation: corePulse 1.6s ease-in-out infinite;
    position: absolute;
    z-index: 3;
}

/* Orbit ring 1 (inner) */
.loading-spinner-arc {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: rgba(59, 130, 246, 0.3);
    animation: orbit1 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: absolute;
    z-index: 2;
}

/* Orbit ring 2 (outer) */
.loading-spinner-arc::before {
    content: '';
    position: absolute;
    top: -9px;
    left: -9px;
    right: -9px;
    bottom: -9px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-bottom-color: #93c5fd;
    border-left-color: rgba(147, 197, 253, 0.2);
    animation: orbit2 1.8s linear infinite;
}

/* Orbit ring 3 (outermost faint) */
.loading-spinner-arc::after {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(147, 197, 253, 0.25);
    animation: orbit3 2.6s linear infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes orbit1 {
    to { transform: rotate(360deg); }
}

@keyframes orbit2 {
    to { transform: rotate(-360deg); }
}

@keyframes orbit3 {
    to { transform: rotate(360deg); }
}

/* Global skeleton shimmer animation */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary, #f0f0f0) 25%, 
        var(--border, #e0e0e0) 50%, 
        var(--bg-secondary, #f0f0f0) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
