/* Main styles for the handout application */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background: #0d1117;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(33, 136, 255, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Top Navigation Bar */
.top-nav {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f0f6fc;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.top-nav-brand i {
    color: #58a6ff;
    font-size: 1.5rem;
}

.top-nav-brand span {
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #21262d;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #30363d;
}

.top-nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: #7d8590;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.top-nav-tab:hover {
    color: #e6edf3;
    background: #30363d;
}

.top-nav-tab.active {
    color: #ffffff;
    background: #0969da;
    border-color: #1f6feb;
    box-shadow: 0 0 12px rgba(9, 105, 218, 0.4);
}

.top-nav-tab i {
    font-size: 16px;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    text-decoration: none;
    color: #7d8590;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.top-nav-link:hover {
    color: #e6edf3;
    background: #21262d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main Content Layout */
.main-content {
    display: block;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #30363d;
}

.breadcrumb a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #79c0ff;
}

.breadcrumb i {
    margin-right: 5px;
}

/* Header Styles */
header {
    background: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #f0f6fc;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    background: linear-gradient(135deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #58a6ff, #1f6feb);
    border-radius: 2px;
}

/* Section and Field Styles */
section {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 2rem;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

.field {
    margin-bottom: 15px;
}

.field-label {
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 5px;
    display: block;
    font-size: 16px;
}

.field-value {
    background: #21262d;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #58a6ff;
    color: #e6edf3;
}

.meta-info {
    color: #7d8590;
    font-size: 0.9em;
    margin-top: 10px;
}

.empty-field {
    color: #7d8590;
    font-style: italic;
}

.agreement {
    color: #3fb950;
    font-weight: 600;
}

/* Links */
.reference-link {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reference-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: #7d8590;
    font-size: 0.9em;
    background: #161b22;
    padding: 1rem 0;
    border-top: 1px solid #30363d;
}

/* Handout specific styles */
.handout-section {
    margin-bottom: 30px;
}

.handout-list {
    padding-left: 20px;
}

.handout-link {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.handout-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}
