/* ====================================
   BASE CSS - Python Learning Platform
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--gray-800);
    background-color: var(--white);
}

/* Typography */
h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.4;
}

p {
    margin-bottom: var(--space-md);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--gray-100);
    padding: 0.125em 0.375em;
    border-radius: var(--radius-sm);
}

pre {
    font-family: var(--font-mono);
    background-color: var(--gray-900);
    color: var(--gray-100);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

/* Layout utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

.text-muted {
    color: var(--gray-500);
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* Spacing utilities */
.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.p-sm {
    padding: var(--space-sm);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.p-xl {
    padding: var(--space-xl);
}

/* Hidden utilities */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}