/* css/index.css */
/* russmcdaniel.my.id – front page */



/* ---------- SMALL UI LABELS ---------- */

.tiny,
.port-kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(11,18,32,.9);
}

.hr{
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

/* ---------- PORTFOLIO PANEL ---------- */

.port-panel{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.port-head{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 18px 0 14px;
}

.port-title{
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.port-sub{
  margin: 0;
  color: rgba(11,18,32,.72);
  line-height: 1.55;
  max-width: 72ch;
}

/* ---------- TABS (CSS ONLY) ---------- */

.port-tabs{
  margin-bottom: 18px;
}

/* hide radios */
.port-tab__radio{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* tab bar */
.port-tabbar{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.port-tab{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(11,18,32,.80);
}

.port-tab__count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.03);
  color: rgba(11,18,32,.72);
  font-weight: 700;
  font-size: 12px;
}

/* selected styles via radio state */
#tab-pub:checked ~ .port-tabbar label[for="tab-pub"],
#tab-web:checked ~ .port-tabbar label[for="tab-web"],
#tab-tech:checked ~ .port-tabbar label[for="tab-tech"]{
  border-color: rgba(58,166,107,.45);
  box-shadow: 0 6px 18px rgba(58,166,107,.12);
}

/* panels container */
.port-tabpanels{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

/* show/hide tab panels */
.port-tabpanel{ display:none; }
#tab-pub:checked ~ .port-tabpanels #panel-pub{ display:block; }
#tab-web:checked ~ .port-tabpanels #panel-web{ display:block; }
#tab-tech:checked ~ .port-tabpanels #panel-tech{ display:block; }

/* ---------- NESTED ACCORDION ---------- */

.port-nacc{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  margin: 10px 0;
  overflow: hidden;
}

.port-nacc__sum{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
}

.port-nacc__sum::-webkit-details-marker{ display:none; }

.port-nacc__meta{
  color: rgba(11,18,32,.62);
  font-weight: 800;
}

.port-nacc__body{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

/* ---------- SUBSECTION HEAD ---------- */

.port-subsec{
  padding: 4px 0 0;
}

.port-subhead{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 8px;
}

.port-subtitle{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.port-subrule{
  height: 1px;
  background: var(--line);
  flex: 1;
}

.port-subdesc{
  margin: 0 0 16px;
  line-height: 1.55;
  color: rgba(11,18,32,.72);
  max-width: 62ch;
}

.port-subdesc a{
  color: rgba(11,18,32,.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(11,18,32,.22);
}

.port-subdesc a:hover{
  color: var(--lav);
  border-bottom-color: rgba(167,139,250,.65);
}

/* ---------- PORT LIST / ITEMS ---------- */

.port-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.port-item{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.port-item-main{
  min-width: 0;
}

.port-item-title{
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 6px;
}

.port-item-title em{
  font-style: italic;
}

.port-item-desc{
  margin: 8px 0 0;
  line-height: 1.55;
  color: rgba(11,18,32,.72);
  max-width: 62ch;

  /* FIX: bring back first-line indent for book descriptions */
  text-indent: 1.5em;
}

.port-item-meta{
  margin-top: 2px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(11,18,32,.62);
}

.port-item-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  align-items: flex-end;
}

.port-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.03);

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .02em;

  color: rgba(11,18,32,.80);
  text-decoration: none;
  white-space: nowrap;
}

.port-link:hover{
  color: var(--lav);
  border-color: rgba(167,139,250,.55);
  background: rgba(167,139,250,.08);
}

.port-link--primary{
  border-color: rgba(58,166,107,.45);
  background: rgba(58,166,107,.10);
}

.port-link--primary:hover{
  color: rgba(11,18,32,.90);
  border-color: rgba(58,166,107,.75);
  background: rgba(58,166,107,.16);
}

/* pending primary */
.port-item--pending-primary{
  border-color: rgba(58,166,107,.45);
  box-shadow: 0 10px 24px rgba(58,166,107,.10);
}

/* ---------- STATUS PILLS ---------- */

.port-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
}

.port-pill.is-live{ background: rgba(58,166,107,.12); border-color: rgba(58,166,107,.45); }
.port-pill.is-active{ background: rgba(58,166,107,.08); border-color: rgba(58,166,107,.35); }
.port-pill.is-experimental{ background: rgba(11,18,32,.04); }
.port-pill.is-progress{ background: rgba(11,18,32,.04); }
.port-pill.is-alpha{ background: rgba(167,139,250,.10); border-color: rgba(167,139,250,.35); }

.port-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

/* ---------- REVIEW DISCLOSURE (UNDER ITEM) ---------- */

.port-item-review{
  margin-top: 10px;
}

.port-item-review__summary{
  cursor: pointer;
  font-weight: 400;
  user-select: none;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(11,18,32,.75);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.02);
}

.port-item-review__summary:hover{
  color: var(--lav);
  border-color: rgba(167,139,250,.55);
  background: rgba(167,139,250,.08);
}

.port-item-review__summary::-webkit-details-marker{ display:none; }

.port-item-review__body{
  margin-top: 10px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11,18,32,.02);
}

.port-item-review__note{
  margin: 0 0 10px;
  line-height: 1.55;
  color: rgba(11,18,32,.72);
  max-width: 62ch;
}

.port-item-review__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.port-item-review__fine{
  margin: 0;
  font-size: 0.9rem;
  color: rgba(11,18,32,.62);
}

/* ---------- PORT FOOT ---------- */

.port-foot{
  margin-top: 14px;
  padding: 14px 0 6px;
}

.port-foot-note{
  color: rgba(11,18,32,.62);
  text-align: center;
  font-style: italic;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 760px){
  .port-title{ font-size: 24px; }

  .port-item{
    flex-direction: column;
    align-items: stretch;
  }

  .port-item-actions{
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }
}
