/* Apple-Style Midnight Blue Reset & Variables */
:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #2997ff;
    /* Apple Blue */
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    /* Midnight Blue Gradient */
    background: radial-gradient(circle at 50% 0%, #1a1f35 0%, #0b0d14 50%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Glow - Subtle Blue */
.background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(41, 151, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Main Container - Frosted Glass */
.container {
    text-align: center;
    padding: 4rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    width: 400px;
    max-width: 90%;
    opacity: 0;
    transform: scale(0.98);
    animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.url-display {
    display: inline-block;
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
    text-shadow: 0 0 20px rgba(41, 151, 255, 0.3);
}

/* Loading State - Minimal Spinner */
.loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.error-message {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 59, 48, 0.1);
    /* Apple Red subtle */
    color: #ff453a;
    font-size: 0.9rem;
}