/* ===================================
   AppProdigy - Main Styles
   Base, Reset, Variables, Typography
   =================================== */

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

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;

    /* Accent */
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

    /* Text Colors */
    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Background Colors */
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;

    /* Border */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --info: #6366f1;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --navbar-height: 72px;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: 0.2s ease;
}

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Language Switching - 7 languages: EN, ZH, JA, DE, ES, FR, PL */
/* Hide all non-active languages */
html.lang-en [data-lang]:not([data-lang="en"]) { display: none !important; }
html.lang-zh [data-lang]:not([data-lang="zh"]) { display: none !important; }
html.lang-ja [data-lang]:not([data-lang="ja"]) { display: none !important; }
html.lang-de [data-lang]:not([data-lang="de"]) { display: none !important; }
html.lang-es [data-lang]:not([data-lang="es"]) { display: none !important; }
html.lang-fr [data-lang]:not([data-lang="fr"]) { display: none !important; }
html.lang-pl [data-lang]:not([data-lang="pl"]) { display: none !important; }

/* Default to English if no language class is set */
html:not(.lang-en):not(.lang-zh):not(.lang-ja):not(.lang-de):not(.lang-es):not(.lang-fr):not(.lang-pl) [data-lang]:not([data-lang="en"]) { display: none !important; }

/* Section Spacing */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}
