/* ============================================================
   Mimbar Team — Portfolio page (Linktree-style) + popups
   Theme presets supply CSS vars; this file consumes them.
   ============================================================ */

:root {
    --mt-bg: #f6f7f9;
    --mt-bg2: #ffffff;
    --mt-text: #1a1d23;
    --mt-muted: #6b7280;
    --mt-accent: #111827;
    --mt-btn-bg: #111827;
    --mt-btn-tx: #ffffff;
    --mt-radius: 14px;
    --mt-avatar: 50%;
}

* { box-sizing: border-box; }

body.mimbar-portfolio {
    margin: 0;
    min-height: 100vh;
    background: var(--mt-bg);
    color: var(--mt-text);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 18px;
    -webkit-font-smoothing: antialiased;
}

.mt-card {
    width: 100%;
    max-width: 540px;
    text-align: center;
    animation: mt-rise .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes mt-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.mt-avatar-wrap { margin-bottom: 18px; }
.mt-avatar {
    width: 116px; height: 116px;
    object-fit: cover; object-position: top center;
    border-radius: var(--mt-avatar);
    border: 4px solid var(--mt-bg2);
    box-shadow: 0 14px 40px -16px rgba(0,0,0,.4);
    margin: 0 auto;
}
.mt-name { font-size: 25px; font-weight: 700; margin: 0 0 4px; }
.mt-jawatan { color: var(--mt-muted); font-size: 14px; margin: 0 0 16px; font-weight: 500; }
.mt-bio { color: var(--mt-muted); font-size: 14.5px; line-height: 1.65; margin: 0 auto 26px; max-width: 420px; }
.mt-bio p { margin: 0 0 8px; }

.mt-links { display: flex; flex-direction: column; gap: 13px; }
.mt-link {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; position: relative;
    padding: 16px 20px;
    border: none; cursor: pointer;
    border-radius: var(--mt-radius);
    background: var(--mt-btn-bg); color: var(--mt-btn-tx);
    font: 600 15px/1 'Poppins', sans-serif; text-decoration: none;
    box-shadow: 0 8px 22px -14px rgba(0,0,0,.55);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    backdrop-filter: blur(6px);
}
.mt-link:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); }
.mt-link:active { transform: translateY(0); }
.mt-link-arrow { position: absolute; right: 18px; opacity: .7; }
.mt-link-ico { font-size: 16px; }
.mt-link-whatsapp { background: #25d366; color: #062d12; }

.mt-footer { margin-top: 34px; }
.mt-footer a { color: var(--mt-muted); font-size: 12.5px; text-decoration: none; opacity: .8; }
.mt-footer a:hover { opacity: 1; }

/* ---------- Popup ---------- */
.mt-popup {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.mt-popup[hidden] { display: none; }
.mt-popup-backdrop {
    position: absolute; inset: 0;
    background: rgba(8,10,18,.55);
    backdrop-filter: blur(4px);
    animation: mt-fade .25s ease both;
}
@keyframes mt-fade { from { opacity: 0; } to { opacity: 1; } }
.mt-popup-panel {
    position: relative; z-index: 1;
    width: 100%; max-width: 520px;
    max-height: 86vh; overflow-y: auto;
    background: #fff; color: #1a1d23;
    border-radius: 20px;
    padding: 30px 28px 34px;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
    animation: mt-pop .32s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes mt-pop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.mt-popup-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border: none; cursor: pointer;
    border-radius: 50%; background: #f1f2f5; color: #4b5563;
    font-size: 20px; line-height: 1; display: grid; place-items: center;
    transition: background .15s ease;
}
.mt-popup-close:hover { background: #e3e5ea; }

.mt-pop-heading { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #111827; }
.mt-pop-subheading { font-size: 15px; font-weight: 600; margin: 14px 0 6px; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
.mt-pop-text { font-size: 14.5px; line-height: 1.7; color: #374151; }
.mt-pop-text p { margin: 0 0 10px; }
.mt-pop-divider { border: none; border-top: 1px solid #ececf0; margin: 18px 0; }

.mt-pop-stat {
    display: flex; flex-direction: column; align-items: flex-start;
    margin: 14px 0; padding: 16px 18px;
    background: linear-gradient(135deg, #f7f7fb, #eef0f7);
    border-radius: 14px;
}
.mt-pop-stat-num { font-size: 34px; font-weight: 800; color: #111827; line-height: 1; }
.mt-pop-stat-cap { font-size: 13px; color: #6b7280; margin-top: 6px; }

.mt-pop-items { list-style: none; margin: 12px 0 0; padding: 0; }
.mt-pop-item { position: relative; padding: 14px 0 14px 18px; border-left: 2px solid #e7e8ee; }
.mt-pop-item::before {
    content: ''; position: absolute; left: -6px; top: 18px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #fff; border: 2px solid #9a8cf0;
}
.mt-pop-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-pop-item-title { font-weight: 650; font-size: 15px; color: #1f2430; }
.mt-pop-item-meta { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.mt-pop-item-desc { font-size: 13.5px; color: #6b7280; line-height: 1.6; margin-top: 4px; }

@media (max-width: 480px) {
    .mt-name { font-size: 22px; }
    .mt-popup-panel { padding: 26px 20px 28px; }
}
