/* Base Styles - Shared across all article/landing pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Neutral colors */
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --background-white: #0f172a;
    --background-gray: #1e293b;
    --background-light: #334155;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);

    /* Semantic colors */
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --info-blue: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

/* Page fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #020617;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.55), 0 0 30px rgba(20, 184, 166, 0.25);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(30, 41, 59, 0.8);
    color: white;
    border: 2px solid #475569;
}

.btn-secondary:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #93c5fd;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Shared Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes slideInFromTop {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero responsive (shared) */
@media (max-width: 768px) {
    .hero {
        padding: calc(125px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(125px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    }

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

/* Print - shared */
@media print {
    .hero { background: none; color: var(--text-primary); }
}

