/* The Voyager Family - Stylesheet */

:root {
    /* Brand colors — pulled from family crest */
    --accent: #e8722a;
    --accent-red: #e8472a;
    --accent-deep: #c94b1f;
    --accent-burgundy: #7a1f3d;
    --bg-dark: #1a0510;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-glass: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 5, 16, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Family crest */
.crest-wrap {
    text-align: center;
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.crest {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(232, 114, 42, 0.3);
}

/* About page profile layout */
.profile {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}


.profile-text h2 {
    margin-bottom: 0.75rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

/* Family Tree */
.tree-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.tree-container {
    position: relative;
    margin: 0 auto;
}

.tree-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.tree-card {
    position: absolute;
    width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.tree-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.tree-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-glass);
}

.tree-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(232, 114, 42, 0.1);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 0.5rem;
}

.tree-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.tree-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.tree-dates {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.2rem;
}

.tree-toggle {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.tree-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tree-password-input {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    outline: none;
}

.tree-password-input:focus {
    border-color: var(--accent);
}

/* Person cards */
.people-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.person-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.person-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    text-decoration: none;
}

.person-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glass);
    flex-shrink: 0;
}

.person-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(232, 114, 42, 0.1);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.person-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.person-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Blog */
.section-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    text-decoration: none;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cat-parenting    { background: rgba(232, 114, 42, 0.15); color: #e8722a; }
.cat-family       { background: rgba(232, 71, 42, 0.15);  color: #e8472a; }
.cat-time         { background: rgba(201, 75, 31, 0.15);  color: #c94b1f; }
.cat-booktakeaways { background: rgba(180, 80, 100, 0.2); color: #d4768a; }

.post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.post-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.category-section {
    margin-bottom: 3rem;
}

.view-all {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent);
}

.post-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.author-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.author-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.author-btn:hover,
.author-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.empty-state {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    padding: 1rem 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .profile {
        flex-direction: column;
    }

    .profile img {
        width: 100%;
        height: auto;
    }
}
