/* ==========================================================================
   Design Tokens, Global Reset, Typography, and Shared Utilities (css/common.css)
   ========================================================================== */

:root {
    --primary-color: #0d3b66;
    --secondary-color: #1d3557;
    --accent-color: #f4a261;
    --accent-color-hover: #e76f51;
    --bg-light: #f8fafc;
    --text-dark: #2b2d42;
    --text-muted: #64748b;
    --text-muted-dark: #cbd5e0;
    --card-border: #e2e8f0;
    --text-light: #ffffff;
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* Global Reset & Base Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Anchor & Inline Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

.inline-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.inline-link:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Header Typography */
.section-title {
    width: 100%;
    /*max-width: 800px;*/
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Micro-animations */
.card-fade-in {
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loading Shimmer Placeholders */
.skeleton-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-fade-in {
        animation: none;
    }
    .skeleton-line {
        animation: none;
        background: #e2e8f0;
    }
}

/* ==========================================================================
   Section Navigation & Professional Navigation Buttons Component
   ========================================================================== */

.section-nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end; 
    margin: 1.5rem 0 1rem 0;
}

.section-nav-buttons .nav-btn {
    background: var(--primary-color, #0d3b66);
    color: var(--text-light, #ffffff);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.section-nav-buttons .nav-btn:hover:not(:disabled) {
    background: var(--accent-color, #f4a261);
    color: var(--primary-color, #0d3b66);
    transform: translateY(-2px);
}

/* High contrast outline for keyboard focus users */
.section-nav-buttons .nav-btn:focus-visible {
    outline: 3px solid var(--accent-color, #f4a261);
    outline-offset: 2px;
}

.section-nav-buttons .nav-btn:disabled,
.section-nav-buttons .nav-btn.disabled,
.section-nav-buttons .nav-btn[aria-disabled="true"] {
    background: var(--text-muted, #64748b);
    color: var(--bg-light, #f8fafc);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.9;
    pointer-events: none;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .section-nav-buttons .nav-btn {
        transition: none;
    }
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color, #e2e8f0);
    margin: 1.5rem 0;
}