/* Fulgencio Fest - Modern Family Tree Styles */

:root {
    --color-bg: #f8f9fa;
    --color-text: #1a1a1a;
    --color-text-muted: #6b7280;
    --color-accent: #0d9488;
    --color-accent-dark: #0f766e;
    --color-accent-light: #14b8a6;
    --color-card-bg: #ffffff;
    --color-card-border: #e5e7eb;
    --color-border: #d1d5db;
    --color-memorial: #0d9488;
    --color-steel: #6b7280;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Construction Notice */
.construction-notice {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.construction-notice span {
    font-size: 1.1rem;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--color-accent);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.85rem;
}

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

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    flex: 1;
}

/* Memorial Section */
.memorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 3px solid var(--color-accent);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.15);
}

.memorial-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid var(--color-memorial);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    border-radius: 8px;
    border: 3px solid var(--color-memorial);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.photo-placeholder p:first-child {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.memorial-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.memorial-text .names strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.memorial-text .memorial-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.memorial-text .memorial-message {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 500;
}

/* About Section */
.about {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Personal Note Section */
.personal-note {
    margin-top: 2rem;
    padding: 1.5rem;
    border-top: 2px solid var(--color-border);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, transparent 100%);
    border-radius: 8px;
}

.note-content {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}

.note-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.note-photo .photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

.note-photo .photo-placeholder p:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.note-text p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.note-text p strong {
    color: var(--color-text);
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

/* Tree Header */
.tree-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tree-header h1 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.tree-date {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Roots */
.roots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(20, 184, 166, 0.04));
    border-radius: 12px;
    border: 2px solid var(--color-accent);
}

.root-card {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--color-memorial);
    text-align: center;
    min-width: 200px;
}

.root-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-memorial);
    margin-bottom: 0.5rem;
}

.root-years {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.root-connector {
    font-size: 2rem;
}

/* Family Grid */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.family-branch {
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    transition: all 0.2s;
}

.family-branch:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.parent-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.connector {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.person-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.person-card.parent {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.08));
    border-color: var(--color-accent);
    font-weight: 600;
}

.person-card.spouse {
    background: rgba(13, 148, 136, 0.05);
}

.person-card.child {
    background: #ffffff;
    font-size: 0.9rem;
}

.person-card.grandchild {
    background: #f9fafb;
    font-size: 0.85rem;
}

.person-card.placeholder {
    opacity: 0.6;
    border-style: dashed;
}

.person-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.person-role {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.children-section,
.grandchildren-section {
    margin-top: 1.5rem;
}

.children-section h3,
.grandchildren-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    text-align: center;
}

.children-grid,
.grandchildren-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* Directory */
.directory {
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 2px solid var(--color-accent);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.directory h2 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.directory-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.directory-section ul {
    list-style: none;
}

.directory-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.directory-section li:last-child {
    border-bottom: none;
}

.placeholder-text {
    color: var(--color-steel);
    font-style: italic;
}

/* Footer */
.footer {
    border-top: 3px solid var(--color-accent);
    padding: 1.5rem 1.5rem;
    text-align: center;
    background: #f3f4f6;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
    font-weight: 600;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .construction-notice {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .memorial {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .memorial-text h2 {
        font-size: 1.75rem;
    }
    
    .about {
        padding: 1.25rem;
    }
    
    .note-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .note-photo {
        margin: 0 auto;
    }
    
    .roots {
        flex-direction: column;
        gap: 1rem;
    }
    
    .family-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
}
