/* =====================================================================
   assets/css/style.css — Website Silsilah Keluarga
   Tema: Hijau Tua + Emas + Putih + Abu Muda
   ===================================================================== */

:root {
    --sk-primary: #0B3D2E;
    --sk-primary-hover: #082B20;
    --sk-accent: #C9A227;
    --sk-accent-hover: #A9841A;
    --sk-bg: #FFFFFF;
    --sk-surface: #F4F5F3;
    --sk-border: #E4E6E1;
    --sk-text: #1B241E;
    --sk-text-muted: #6B7268;
    --sk-alive: #2E8B57;
    --sk-deceased: #9AA097;
    --sk-radius: 16px;
    --sk-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    --sk-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--sk-text);
    background-color: var(--sk-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .sk-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

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

.sk-section-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.sk-section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 4px;
    background: var(--sk-accent);
    border-radius: 4px;
}

/* ---------------- Navbar ---------------- */
.sk-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sk-border);
    transition: var(--sk-transition);
}
.sk-navbar .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--sk-primary);
}
.sk-navbar .nav-link {
    color: var(--sk-text);
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: var(--sk-transition);
}
.sk-navbar .nav-link:hover,
.sk-navbar .nav-link.active {
    color: var(--sk-primary);
    background: var(--sk-surface);
}
.sk-theme-toggle {
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
    color: var(--sk-text);
    border-radius: 999px;
    width: 38px; height: 38px;
}

/* ---------------- Buttons ---------------- */
.btn.sk-btn-accent {
    background: var(--sk-accent);
    color: #1B241E;
    border: none;
    font-weight: 600;
}
.btn.sk-btn-accent:hover { background: var(--sk-accent-hover); color: #fff; }

.btn-outline-success { color: var(--sk-primary); border-color: var(--sk-primary); }
.btn-outline-success:hover { background: var(--sk-primary); border-color: var(--sk-primary); }

/* ---------------- Hero ---------------- */
.sk-hero {
    position: relative;
    background: linear-gradient(135deg, var(--sk-primary), #135C44);
    padding: 90px 0;
    overflow: hidden;
}
.sk-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(201,162,39,.25), transparent 60%);
}

/* ---------------- Stat cards ---------------- */
.sk-stat-card {
    background: var(--sk-surface);
    border-radius: var(--sk-radius);
    padding: 28px 16px;
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
}
.sk-stat-card:hover { transform: translateY(-4px); }
.sk-stat-card i { font-size: 1.75rem; color: var(--sk-accent); }
.sk-stat-card h3 { margin: 8px 0 0; font-size: 2rem; color: var(--sk-primary); }
.sk-stat-card p { margin: 0; color: var(--sk-text-muted); font-size: 0.9rem; }

/* ---------------- Cards ---------------- */
.card.sk-card {
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    overflow: hidden;
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
}
.card.sk-card:hover { transform: translateY(-4px) scale(1.01); }
.card.sk-card img { height: 180px; object-fit: cover; }

.sk-badge-accent {
    background: var(--sk-accent);
    color: #1B241E;
}

/* ---------------- Member card (grid keluarga) ---------------- */
.sk-member-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    padding: 20px 12px;
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
    height: 100%;
}
.sk-member-card:hover { transform: translateY(-4px) scale(1.02); }
.sk-member-card img {
    width: 88px; height: 88px; object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--sk-surface);
    margin-bottom: 12px;
}
.sk-member-card h6 { margin-bottom: 4px; font-weight: 600; }
.sk-status-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 999px;
    margin-top: 6px;
}
.sk-status-alive { background: rgba(46,139,87,.12); color: var(--sk-alive); }
.sk-status-deceased { background: rgba(154,160,151,.15); color: var(--sk-deceased); }

/* ---------------- Tree ---------------- */
.sk-tree-wrapper {
    position: relative;
    height: 75vh;
    background: var(--sk-surface);
    border-radius: var(--sk-radius);
    overflow: hidden;
    border: 1px solid var(--sk-border);
}
.sk-tree-canvas { width: 100%; height: 100%; }
.sk-tree-fullscreen { height: 100vh !important; border-radius: 0; }
.sk-tree-loading {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--sk-text-muted);
}

/* ---------------- Timeline ---------------- */
.sk-timeline { position: relative; padding-left: 32px; }
.sk-timeline::before {
    content: ""; position: absolute; left: 8px; top: 0; bottom: 0;
    width: 3px; background: var(--sk-border);
}
.sk-timeline-item { position: relative; padding-bottom: 32px; }
.sk-timeline-item::before {
    content: ""; position: absolute; left: -28px; top: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--sk-accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sk-accent);
}
.sk-timeline-year { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--sk-primary); }

/* ---------------- Gallery ---------------- */
.sk-gallery-thumb img { aspect-ratio: 1/1; object-fit: cover; transition: var(--sk-transition); }
.sk-gallery-thumb:hover img { transform: scale(1.05); }

/* ---------------- Footer ---------------- */
.sk-footer {
    background: var(--sk-primary);
    color: #E9ECE9;
    padding: 56px 0 24px;
    margin-top: 64px;
}
.sk-footer h5, .sk-footer h6 { color: #fff; }
.sk-footer a { color: #C9D6C9; }
.sk-footer a:hover { color: var(--sk-accent); }

/* Fade-up animation on scroll */
.sk-fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.sk-fade-up.sk-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 767px) {
    .sk-hero { padding: 56px 0; }
    .sk-tree-wrapper { height: 60vh; }
}
