/* ================================================================
   view_riwayat_ketua.php — Riwayat Ketua Umum Himatika
   ================================================================ */

/* ── Section header ── */
.rk-intro { margin-bottom: 48px; }

/* ── Filter bar ── */
.rk-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.rk-filter-bar span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 4px;
}
.rk-filter-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
    background: transparent;
}
.rk-filter-btn:hover { background: rgba(0,119,170,.08); border-color: #0077aa; color: #0077aa; }
.rk-filter-btn.active { background: #0077aa; color: #fff; border-color: #0077aa; }

/* ── Grid ── */
.rk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

/* ── Card ── */
.rk-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}
.rk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
    border-color: rgba(0,119,170,.4);
}

/* Accent top strip */
.rk-card-strip {
    height: 4px;
    background: linear-gradient(90deg, #0077aa, #c9a84c);
}
.rk-card-strip--amber { background: linear-gradient(90deg, #c9a84c, #e8b84b); }

/* Active period glow */
.rk-card--active { border-color: rgba(201,168,76,.55); }
.rk-card--active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 2px rgba(201,168,76,.25);
    pointer-events: none;
}

/* Badge */
.rk-badge {
    position: absolute;
    top: 18px;
    right: 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
}
.rk-badge--aktif { background: #c9a84c; color: #0f0f11; }
.rk-badge--manual { background: rgba(0,200,212,.15); color: #00c8d4; border: 1px solid rgba(0,200,212,.3); }

/* Photo area */
.rk-photo-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 0 16px;
}
.rk-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.rk-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2a3a 0%, #163049 100%);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 700;
    color: #0077aa;
    letter-spacing: -1px;
}

/* Card body */
.rk-card-body { padding: 0 20px 24px; text-align: center; }

.rk-periode-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0077aa;
    font-family: 'Cinzel', serif;
    margin-bottom: 8px;
}
.rk-periode-tag--amber { color: #c9a84c; }

.rk-name {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}
.rk-jabatan {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.rk-bio {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Divider */
.rk-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

/* NIM chip */
.rk-nim-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ── Empty state ── */
.rk-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}
.rk-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: .4;
}
.rk-empty h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .rk-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .rk-photo, .rk-photo-placeholder { width: 72px; height: 72px; font-size: 22px; }
    .rk-name { font-size: 13px; }
}
@media (max-width: 400px) {
    .rk-grid { grid-template-columns: 1fr; }
}
