/* ============================================================
   MySite — Guest CSS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F5F4F1;
  --surface:   #FFFFFF;
  --surface2:  #F8F7F4;
  --border:    #E4E2DB;
  --text:      #1A1916;
  --text2:     #5A5750;
  --text3:     #9A9790;
  --accent:    #185FA5;
  --accent-h:  #378ADD;
  --accent-lt: #E6F1FB;
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --sidebar-w: 220px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }

/* ---- LAYOUT ---- */
.guest-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); min-height: 100vh; }

/* ---- SIDEBAR ---- */
.g-sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 100; }
.g-sb-head { padding: 18px 14px 15px; border-bottom: 1px solid var(--border); }
.g-brand { display: flex; align-items: center; gap: 10px; }
.g-brand-ico { width: 34px; height: 34px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.g-brand-ico svg { width: 17px; height: 17px; stroke: #E6F1FB; fill: none; }
.g-brand-name { font-size: 14px; font-weight: 700; }
.g-brand-tagline { font-size: 11px; color: var(--text3); }
.g-nav { padding: 10px 8px; flex: 1; }
.g-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: var(--radius); color: var(--text2); font-size: 13px; text-decoration: none; transition: background .1s; margin-bottom: 2px; }
.g-nav-item:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.g-nav-item.active { background: var(--accent-lt); color: var(--accent); font-weight: 600; }
.g-nav-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.g-nav-item.active .g-nav-icon { background: #B5D4F4; }
.g-nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-ext-icon { width: 11px; height: 11px; flex-shrink: 0; opacity: .45; }
.g-nav-empty { font-size: 12px; color: var(--text3); padding: 16px 11px; font-style: italic; }
.g-sb-foot { padding: 12px 14px; border-top: 1px solid var(--border); }
.g-visitor-label { font-size: 11px; color: var(--text3); }

/* ---- MAIN ---- */
.g-main { display: flex; flex-direction: column; min-height: 100vh; }

/* TOPBAR */
.g-topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.g-topbar-left { display: flex; align-items: center; gap: 12px; }
.g-topbar-title { font-size: 15px; font-weight: 600; }
.g-topbar-right { display: flex; align-items: center; gap: 10px; }
.g-topbar-date { font-size: 11px; color: var(--text3); white-space: nowrap; }
.g-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; background: var(--bg); }
.g-search svg { width: 13px; height: 13px; flex-shrink: 0; }
.g-search input { border: none; background: transparent; outline: none; font-size: 12px; width: 120px; color: var(--text); }
.g-search input::placeholder { color: var(--text3); }
.g-hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px; cursor: pointer; flex-direction: column; gap: 4px; }
.g-hamburger span { display: block; width: 16px; height: 1.5px; background: var(--text2); }

/* CONTENT */
.g-content { padding: 20px 24px; flex: 1; }

/* HERO */
.g-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 18px; }
.g-hero-icon { font-size: 32px; line-height: 1; flex-shrink: 0; width: 52px; height: 52px; background: var(--accent-lt); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; }
.g-hero-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.g-hero-desc { font-size: 13px; color: var(--text2); line-height: 1.65; max-width: 480px; }

/* STATS */
.g-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.g-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; text-align: center; }
.g-stat-val { font-size: 26px; font-weight: 700; color: var(--accent); }
.g-stat-label { font-size: 11px; color: var(--text3); margin-top: 4px; text-transform: uppercase; letter-spacing: .7px; }

/* SECTION TITLE */
.g-section-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.g-section-title span { font-size: 11px; font-weight: 400; color: var(--text3); }

/* MENU GRID */
.g-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 12px; }
.g-menu-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: block; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.g-menu-card:hover { border-color: var(--accent-h); box-shadow: var(--shadow-md); text-decoration: none; }
.g-menu-card-icon { font-size: 24px; margin-bottom: 10px; }
.g-menu-card-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.g-menu-card-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }
.g-menu-card-ext { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text3); margin-top: 8px; }

/* HALAMAN KONTEN */
.g-page-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.g-konten { font-size: 14px; line-height: 1.8; color: var(--text); }
.g-konten p { margin-bottom: 12px; }
.g-konten b, .g-konten strong { font-weight: 600; }
.g-konten a { color: var(--accent); }
.g-konten ul, .g-konten ol { padding-left: 20px; margin-bottom: 12px; }
.g-konten li { margin-bottom: 4px; }
.g-empty-content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; color: var(--text3); text-align: center; }
.g-empty-content svg { width: 36px; height: 36px; margin-bottom: 12px; opacity: .35; }
.g-empty-content p { font-size: 14px; color: var(--text2); }
.g-empty-content span { font-size: 12px; margin-top: 4px; }

/* FOOTER */
.g-footer { padding: 16px 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text3); background: var(--surface); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .guest-layout { grid-template-columns: 1fr; }
  .g-sidebar { position: fixed; left: -100%; width: var(--sidebar-w); transition: left .25s; box-shadow: var(--shadow-md); }
  .g-sidebar.open { left: 0; }
  .g-hamburger { display: flex; }
  .g-stats { grid-template-columns: 1fr 1fr; }
  .g-topbar-date { display: none; }
  .g-search input { width: 90px; }
  .g-content { padding: 16px; }
}
