/* ============================================================
   MAIN STYLES - Minimal Loader
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
}

.loader {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    animation: fadeUp 0.5s ease;
}

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

.logo {
    font-size: 64px;
    display: block;
    margin-bottom: 8px;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

h1 {
    font-size: 20px;
    font-weight: 800;
    color: #d62828;
    line-height: 1.2;
}

h1 .amp {
    color: #1c1c1e;
}

.subtitle {
    font-size: 14px;
    color: #6c6c70;
    margin-top: 2px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 16px auto;
    border: 3px solid #e8e8ed;
    border-top-color: #d62828;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.detect-text {
    font-size: 14px;
    color: #8e8e93;
    min-height: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .loader {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .logo {
        font-size: 48px;
    }
    h1 {
        font-size: 17px;
    }
    .subtitle {
        font-size: 13px;
    }
    .spinner {
        width: 32px;
        height: 32px;
        margin: 12px auto;
    }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
    }
    .loader {
        background: #1c1c1e;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    }
    h1 .amp {
        color: #f2f2f7;
    }
    .subtitle {
        color: #aeaeb2;
    }
    .spinner {
        border-color: #2c2c2e;
        border-top-color: #d62828;
    }
    .detect-text {
        color: #8e8e93;
    }
}
