/**
 * Base CSS - Phạm Gia Mobility
 * Variables, Reset & Base Typography
 *
 * @package Pham_Gia_Mobility
 * @version 1.4.0
 */

:root {
    --pcg-bg-base: #050507;
    --pcg-bg-surface: #0e0e12;
    --pcg-bg-surface-elevated: #16161d;
    --pcg-text-primary: #ffffff;
    --pcg-text-secondary: #a1a1aa;
    --pcg-text-muted: #71717a;
    --pcg-border: #1f1f28;
    --pcg-border-hover: #3b3b4c;
    --pcg-border-glow: rgba(255, 255, 255, 0.12);
    --pcg-badge-bg: rgba(255, 255, 255, 0.05);
    --pcg-badge-border: rgba(255, 255, 255, 0.12);
    --pcg-badge-text: #e4e4e7;
    --pcg-btn-bg: #ffffff;
    --pcg-btn-text: #050507;
    --pcg-btn-hover-bg: #e4e4e7;
    --pcg-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pcg-content-width: 980px;
    --pcg-wide-width: 1260px;
    --pcg-transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* Màu chủ đạo Cinematic Luxury Tech (Chuẩn Xanh Dương - True Blue) */
    --pcg-cyan-bright: #38BDF8;
    --pcg-cyan-glow: #38BDF8;
    --pcg-blue-electric: #00A8FF;
    --pcg-blue-deep: #0066FF;
    --pcg-gradient-accent: linear-gradient(180deg, #38BDF8 0%, #0088FF 55%, #0055D4 100%);
    --pcg-gradient-btn: linear-gradient(135deg, #00A8FF 0%, #0066FF 100%);

    /* ----------------------------------------------------------------------
       Hệ thống Ambient Background Tokens (Luxury Tech v1.10.0)
       ---------------------------------------------------------------------- */
    --pcg-bg-canvas: #050608;

    /* 1. Midnight Blue Ambient */
    --pcg-bg-midnight-base: #06080e;
    --pcg-ambient-blue-glow: rgba(30, 64, 175, 0.18);
    --pcg-ambient-cyan-glow: rgba(56, 189, 248, 0.08);

    /* 2. Graphite Titanium */
    --pcg-bg-titanium-base: #0c0d12;
    --pcg-titanium-sheen: rgba(255, 255, 255, 0.035);
    --pcg-titanium-highlight: rgba(255, 255, 255, 0.08);

    /* 3. Deep Navy Gradient */
    --pcg-navy-top: #090e1a;
    --pcg-navy-mid: #060912;
    --pcg-navy-bottom: #04060a;

    /* 4. Subtle Tech Grid */
    --pcg-bg-grid-base: #07090f;
    --pcg-grid-line: rgba(96, 165, 250, 0.045);
    --pcg-grid-size: 48px;

    /* 5. Soft Dark Surface */
    --pcg-bg-soft-surface: #0f1017;
    --pcg-soft-surface-border: rgba(255, 255, 255, 0.06);

    /* Card Elevation & Glassmorphism Tokens */
    --pcg-card-surface: rgba(14, 16, 23, 0.78);
    --pcg-card-surface-hover: rgba(20, 23, 33, 0.92);
    --pcg-card-border: rgba(255, 255, 255, 0.08);
    --pcg-card-border-hover: rgba(212, 175, 55, 0.38);
    --pcg-card-blur: blur(14px);
    --pcg-card-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55);
    --pcg-card-shadow-hover: 0 20px 48px -6px rgba(0, 0, 0, 0.75), 0 0 24px rgba(37, 99, 235, 0.10);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

[id] {
    scroll-margin-top: 86px;
}

html, body {
    overflow-x: hidden;
}

body.pcg-menu-open {
    overflow: hidden;
}

body,
.editor-styles-wrapper {
    background-color: var(--pcg-bg-base);
    color: var(--pcg-text-primary);
    font-family: var(--pcg-font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    color: var(--pcg-text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p,
.editor-styles-wrapper p {
    margin-bottom: 1.25rem;
    color: var(--pcg-text-secondary);
}

a,
.editor-styles-wrapper a {
    color: var(--pcg-text-primary);
    text-decoration: none;
    transition: var(--pcg-transition-smooth);
}

a:hover, a:focus,
.editor-styles-wrapper a:hover,
.editor-styles-wrapper a:focus {
    color: var(--pcg-text-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
