/*
 * Shared base styles for NewsGDrive templates (docs/bugs/033.md).
 *
 * Extracted from the per-template <style> blocks so that fonts, variables,
 * the reset and shared keyframes are defined exactly once. Only
 * page-specific rules stay inline in each template.
 */

/* Google Fonts: Inter (Latin), Noto Sans Thai (Thai), Outfit (display). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-color: #0b0f19;
    /* Brand glow crops in from the top; pages that need a centered glow
       override this variable inline (login / drive_not_authorized). */
    --accent-glow: radial-gradient(
        circle at 50% 0%,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        transparent 100%
    );
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --success-color: #10b981;
    --error-color: #ef4444;
    --input-bg: rgba(31, 41, 55, 0.5);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(99, 102, 241, 0.5);
}

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', 'Noto Sans Thai', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--accent-glow);
    color: var(--text-primary);
    position: relative;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

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