/* ============================================
   PASS100 - Main Stylesheet
   TrustOpen
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary Colors */
    --au-blue: #003366;
    --au-blue-dark: #002244;
    --au-blue-light: #004488;
    --au-gold: #CC9900;
    --au-gold-light: #FFCC33;
    
    /* Secondary Colors */
    --au-teal: #006666;
    --au-green: #006633;
    --au-red: #990000;
    --au-orange: #CC6600;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --black: #000000;
    
    /* Status Colors */
    --success: #28A745;
    --success-light: #D4EDDA;
    --warning: #FFC107;
    --warning-light: #FFF3CD;
    --danger: #DC3545;
    --danger-light: #F8D7DA;
    --info: #17A2B8;
    --info-light: #D1ECF1;
    
    /* Typography */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Spacing */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--au-blue);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

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

a {
    color: var(--au-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--au-blue-light);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 9999;
    padding: var(--space-3) var(--space-4);
    background: var(--au-blue);
    color: var(--white);
    border-radius: var(--radius-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Focus Styles */
:focus-visible {
    outline: 3px solid var(--au-gold);
    outline-offset: 2px;
}

/* Screen Reader Only */
.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;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Button Variants */
.btn-primary {
    background-color: var(--au-blue);
    color: var(--white);
    border-color: var(--au-blue);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--au-blue-dark);
    border-color: var(--au-blue-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--au-gold);
    color: var(--au-blue-dark);
    border-color: var(--au-gold);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--au-gold-light);
    border-color: var(--au-gold-light);
    color: var(--au-blue-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--au-blue);
    border-color: var(--au-blue);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--au-blue);
    color: var(--white);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray-700);
}

.main-nav a:hover {
    color: var(--au-blue);
}

.header-actions {
    display: flex;
    gap: var(--space-3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--au-blue);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--au-blue);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

@media (max-width: 768px) {
    .main-nav,
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background-color: var(--gray-100);
    padding: var(--space-3) 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--text-sm);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-2);
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-600);
}

.breadcrumb a:hover {
    color: var(--au-blue);
}

.breadcrumb [aria-current="page"] {
    color: var(--gray-800);
    font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--au-blue), var(--au-teal));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ---------- Status Badges ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.status-badge[data-status="not-started"] {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.status-badge[data-status="in-progress"] {
    background-color: var(--info-light);
    color: var(--info);
}

.status-badge[data-status="completed"] {
    background-color: var(--success-light);
    color: var(--success);
}

.status-badge[data-status="locked"] {
    background-color: var(--gray-100);
    color: var(--gray-500);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--au-blue-dark);
    color: var(--white);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.footer-brand {
    text-align: center;
    margin-bottom: var(--space-8);
}

.footer-logo {
    height: 48px;
    margin-bottom: var(--space-3);
}

.footer-tagline {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-column h4 {
    color: var(--au-gold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    color: var(--gray-300);
    font-size: var(--text-sm);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--au-blue-light);
}

.copyright {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}