/* /public_html/css/main.css */

:root {
    /* THE PALETTE */
    --hue: 245; 
    --brand-primary: hsl(var(--hue), 80%, 55%);
    --brand-dark: hsl(var(--hue), 80%, 15%);
    --brand-accent: hsl(38, 95%, 55%); 

    /* SURFACES & TEXT */
    --bg-color: #f8fafc; 
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a; 
    --text-muted: #64748b; 

    /* BORDERS & RADII */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px; 
    --radius-pill: 9999px;

    /* DISPERSED SHADOWS */
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px -8px rgba(15, 23, 42, 0.12);

    /* FLUID TYPOGRAPHY */
    --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-h2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
    --text-h1: clamp(2.25rem, 2rem + 2vw, 3.5rem);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* 7. GLOBAL STRUCTURAL COMPONENTS */

/* Navigation */
.navbar { 
    background-color: var(--surface); 
    border-bottom: 1px solid var(--border); 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: var(--shadow-sm); /* Upgraded to dispersed shadow */
}
.navbar-brand { 
    font-weight: 800; 
    font-size: var(--text-h3); /* Upgraded to fluid typography */
    color: var(--brand-primary); 
    text-decoration: none; 
    letter-spacing: -0.025em; 
}
.user-menu a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-left: 1.5rem; 
    font-size: var(--text-sm);
    font-weight: 600; 
    transition: color 0.2s; 
}
.user-menu a:hover { 
    color: var(--brand-primary); 
}

/* Layout & Cards */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem 5%; 
    width: 100%; 
}
.card { 
    background: var(--surface); 
    border-radius: var(--radius-md); /* Upgraded to modern, larger radius */
    border: 1px solid var(--border); 
    box-shadow: var(--shadow-md); /* Upgraded to modern shadow */
    padding: 2rem; 
}

/* Buttons */
.btn-primary { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; 
    background: var(--brand-primary); 
    color: white; 
    border: none; 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
    cursor: pointer; 
    text-decoration: none; 
    transition: all 0.2s ease; 
}
.btn-primary:hover { 
    background: var(--brand-dark); 
    transform: translateY(-1px); /* Adds a premium "lift" effect on hover */
    box-shadow: var(--shadow-sm);
}