/* Shared family styles for pages under a_home/fam/ */
/* Variables and general reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
    --bg-lilac: #D8BFE6;
    --text-primary: #eef2f7;
    --text-strong: #ffffff;
    --muted: #cfcfe8;
    --card-bg: rgba(12,12,12,0.88);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-lilac);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 200, 200, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 30px;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.title-meta { display:flex; align-items:center; gap:14px; }
.header-house { width:110px; height:110px; object-fit:cover; border-radius:12px; box-shadow: 0 8px 22px rgba(0,0,0,0.45); flex-shrink:0; transform: translateY(-2px); }

h1 { font-size: 2.5em; font-weight: 300; letter-spacing: -0.02em; background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; flex-grow: 1; }

.file-controls { display:flex; gap:12px; }
.file-btn { background: rgba(255,255,255,0.05); color:#fff; border:1px solid rgba(255,255,255,0.2); padding:12px 24px; border-radius:12px; font-size:0.9em; font-weight:500; cursor:pointer; transition: all 0.3s; font-family:inherit; backdrop-filter: blur(10px); }
.file-btn:hover{ transform: translateY(-2px); }

/* Generic pill / badge button used across family pages (tags, small actions) */
.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.10);
    font-weight:600;
    font-size:0.95rem;
    cursor:pointer;
    transition: transform 190ms ease, box-shadow 190ms ease, background 190ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.btn:active{ transform: translateY(-2px) scale(0.995); }
.btn:focus{ outline: 3px solid rgba(99,102,241,0.18); }

/* ghost variant for subtle controls */
.btn--ghost{ background: transparent; border: 1px solid rgba(255,255,255,0.06); box-shadow:none }

/* selected/tag state */
.btn.selected, .btn[aria-pressed="true"]{ background: linear-gradient(90deg, rgba(99,102,241,0.18), rgba(139,92,246,0.12)); border-color: rgba(99,102,241,0.36); color: #fff; box-shadow: 0 14px 38px rgba(99,102,241,0.12); }

/* smaller compact variant for tag chips */
.btn--chip{ padding:6px 10px; font-size:0.9rem; }

.family-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:30px; margin-bottom:40px }
.member-card { background: var(--card-bg); backdrop-filter: blur(20px); border:1px solid rgba(255,255,255,0.1); border-radius:24px; padding:30px; transition: all 0.4s; position:relative; overflow:hidden }
.member-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, transparent, var(--accent-color), transparent); opacity:0; transition:opacity 0.3s }
.member-card:hover { transform: translateY(-8px); border-color:rgba(255,255,255,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.member-card.adult{ --accent-color: #4ade80 }
.member-card.child{ --accent-color: #f472b6 }

.member-header{ display:flex; align-items:center; margin-bottom:30px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.08) }
.member-avatar{ width:94px; height:94px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:36px; margin-right:20px; flex-shrink:0; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12); overflow:hidden; transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease }
.member-avatar.clickable{ cursor:pointer }
.member-avatar.clickable:hover{ transform: scale(1.04); filter: brightness(1.06); box-shadow: 0 10px 30px rgba(0,0,0,0.35) }
.member-avatar img{ width:100%; height:100%; object-fit:cover }
.member-info h2{ color:var(--text-strong); font-size:1.8em; font-weight:600; margin-bottom:8px }
.age-tag{ display:inline-block; background: rgba(0,0,0,0.28); color:var(--text-strong); padding:6px 14px; border-radius:8px; font-size:0.85em; font-weight:600; border:1px solid rgba(255,255,255,0.06) }

.info-item{ margin-bottom:16px; padding:16px; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10); border-radius:12px }
.info-label{ font-weight:700; color:#d8d8df; font-size:0.82em; margin-bottom:8px; display:block; text-transform:uppercase; letter-spacing:0.06em }
.info-value{ color:var(--text-strong); font-size:1.08em; padding:10px 6px; border-radius:8px; min-height:34px; font-weight:600 }

/* image modal tweaks */
#imgModal .modal{ padding:14px; max-width:820px }
#imgModalImg{ max-width:100%; max-height:72vh; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,0.6); display:block }
#imgModalCaption{ margin-top:12px; color:#e6e6e6; font-weight:600; text-align:center; font-size:1.05em }

/* small inconspicuous home link (shared) */
.home-link{ position: fixed; left: 14px; top: 14px; z-index: 99999; text-decoration: none; font-size: 18px; opacity: 0.88; background: rgba(255,255,255,0.95); color: #222; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; box-shadow:0 6px 16px rgba(0,0,0,0.12) }
.home-link:focus{ outline: 3px solid rgba(66,153,225,0.5) }
@media (max-width:768px){ .header-house{ width:68px; height:68px } .home-link{ left:8px; top:8px; width:32px; height:32px } }

/* scrollbar tweaks */
::-webkit-scrollbar{ width:10px }
::-webkit-scrollbar-track{ background: rgba(255,255,255,0.05) }
::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.2); border-radius:5px }
::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.3) }

/* responsive niceties */
@media (max-width: 768px){ body { padding: 20px 15px } h1 { font-size:1.8em } .member-card { padding:22px } .member-info h2 { font-size:1.4em } .info-value { font-size:1.04em } }

/* end shared styles */
