﻿
/*
=====================================================================================================
=     SURNAME REPORTS ENHANCED STYLES - Updated December 2025
=====================================================================================================
*/

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Raleway:wght@300;400;500;600&family=Jura:wght@400;500;600&display=swap');

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   MODERN RESET & BASE STYLES
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

/* Enhanced base styles */
body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

/* Container and layout improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   HEADER & NAVIGATION STYLES
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header > * {
    position: relative;
    z-index: 1;
}

.header h1 {
    font: 38px 'Lora', serif;
    color: white;
    margin: 0.3em 0;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
    font-weight: 300;
}

/* Navigation links */
.nav-link {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.nav-link a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link a:hover {
    color: #667eea;
}

.nav-link a::before {
    content: '🏠 ';
    margin-right: 0.5rem;
}

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   PAGE NAVIGATION (PAGINATION)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

.page-navigation {
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 0 2rem 2rem 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.page-navigation h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.2rem;
    border: none;
    padding: 0;
    font: 28px 'Jura', sans-serif;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-links li {
    margin: 0;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-links a:hover {
    background: #764ba2;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-links .current-page a {
    background: #28a745;
    cursor: default;
}

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   TABLE OF CONTENTS
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

.toc {
    padding: 2rem;
    background: #fff;
}

.toc h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
    font: 28px 'Jura', sans-serif;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-grid li {
    margin: 0;
}

.toc-grid a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 400;
}

.toc-grid a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   INDIVIDUAL PROFILES
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

.individual {
    background: #fff;
    margin: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    position: relative;
}

.individual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px 0 0 2px;
}

.individual h3 {
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding: 0 0 1rem 0;
    border-bottom: 2px solid #ecf0f1;
    font: 28px 'Jura', sans-serif;
    font-weight: 600;
}

/* Facts and details */
.facts-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.facts-list li:last-child {
    border-bottom: none;
}

.facts-list strong {
    color: #495057;
    min-width: 120px;
    font-weight: 600;
}

/* Sections within individual profiles */
.section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.section h5, .section h6 {
    margin: 0 0 1rem 0;
    color: #495057;
}

.section h5 {
    font: normal 24px 'Raleway', sans-serif;
    font-weight: 600;
}

.section h6 {
    font: normal 20px 'Raleway', sans-serif;
    font-weight: 500;
    color: #6c757d;
}

/* Relationship styling */
.relationship {
    background: #fff;
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.relationship h6 {
    color: #495057;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f8f9fa;
}

.relationship ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.relationship li {
    padding: 0.4rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
}

.relationship li::before {
    content: '👤';
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-size: 0.8rem;
}

.no-children {
    color: #6c757d;
    font-style: italic;
    margin: 0;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
}

/* External links */
.facts-list a, .section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.facts-list a:hover, .section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   FOOTER
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

.footer {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer p {
    margin: 0;
    font-size: 1rem;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer a::before {
    content: '🏠 ';
    margin-right: 0.5rem;
}

/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@   RESPONSIVE DESIGN
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

/* Mobile devices */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .header, .nav-link, .individual, .page-navigation {
        margin: 1rem;
        padding: 1rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .page-links {
        justify-content: center;
    }
    
    .facts-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .facts-list strong {
        min-width: auto;
        margin-bottom: 0.2rem;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .individual {
        margin: 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .toc-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        max-width: 1400px;
    }
};
