/* ===== MODERN INFOGRAPHIC STYLES ===== */
/* Style mengikuti halaman Monthly Customer Feedback */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,100..700;1,17..18,100..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
  /* --- Color Palette (dari Monthly Customer Feedback) --- */
  --color-purple:       #8A4FFF;
  --color-purple-light: #A371F0;
  --color-purple-bg:    #F3F0FF;
  --color-purple-soft:  #EDE8FC;
  --color-peach:        #FFAD7D;
  --color-peach-bg:     #FFF0E6;
  --color-peach-border: #FFAD7D;

  --bg-body-from:   #F7F5FC;
  --bg-body-to:     #FEF3F0;
  --bg-wrapper:     #FFFFFF;
  --bg-box:         #FCFAFE;
  --bg-box-alt:     #FEFAF6;
  --bg-badge:       #F3F0FF;

  --color-text-dark:  #2D3E50;
  --color-text-mid:   #2C3E50;
  --color-text-muted: #6C7A8E;
  --color-text-faint: #8A99B0;
  --color-text-sub:   #9AA9BF;

  --border-soft:    #F0EFF5;
  --border-purple:  #F1EDF7;
  --border-peach:   #EFECF5;

  /* --- Typography --- */
  --font-main: 'Google Sans', 'Montserrat', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
  background: linear-gradient(135deg, var(--bg-body-from) 0%, var(--bg-body-to) 100%);
  color: var(--color-text-dark);
  min-height: 100vh;
  padding: 2rem 1.5rem;
}

h1, h2, h3, h4, h5, h6,
.page-title, .brand-name, .headline-title, .title-retro {
  font-family: 'Google Sans', 'Montserrat', sans-serif;
  font-variation-settings: "GRAD" 0;
  letter-spacing: -0.01em;
}

/* ===== MAIN WRAPPER ===== */
.infographic-wrapper {
  background: var(--bg-wrapper);
  border-radius: 42px;
  padding: 2rem 2.5rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
  background: linear-gradient(125deg, #2D2B6B, var(--color-purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.page-badge {
  background: var(--bg-badge);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-purple);
  display: inline-block;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
}

.page-title span {
  background: linear-gradient(120deg, var(--color-purple), var(--color-peach));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.page-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-left: 3px solid var(--color-peach);
  padding-left: 1rem;
  margin-top: 0.4rem;
}

/* ===== SECTION BOXES ===== */
.box {
  background: var(--bg-box);
  border: 1px solid var(--border-purple);
  border-radius: 24px;
  padding: 1rem 1.2rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(138, 79, 255, 0.08);
}

.box-alt {
  background: var(--bg-box-alt);
  border: 1px solid var(--border-peach);
  border-radius: 24px;
  padding: 1rem 1.2rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-alt:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 173, 125, 0.1);
}

/* Legacy aliases */
.box-beige { 
  background: var(--bg-box-alt);
  border: 1px solid var(--border-peach);
  border-radius: 24px;
  padding: 1rem 1.2rem;
  height: 100%;
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-purple);
  border-bottom: 1px solid var(--border-purple);
  padding-bottom: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-purple), transparent);
}

.headline-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-purple);
  border-bottom: 1px solid var(--border-purple);
  padding-bottom: 3px;
  margin-bottom: 6px;
}

/* ===== TYPOGRAPHY ===== */
.title-retro {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.title-retro strong {
  background: linear-gradient(120deg, var(--color-purple), var(--color-peach));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.headline-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.lorem-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ===== NETWORK / BUBBLE DIAGRAM ===== */
.bubble-network {
  width: 100%;
  height: 130px;
}

/* ===== WORLD MAP ===== */
.world-map-container {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 16px;
}

.world-map-svg {
  width: 100%;
  height: 100%;
  opacity: 0.7;
  fill: var(--color-purple-soft);
}

/* ===== CIRCULAR PROGRESS ===== */
.circular-chart {
  position: relative;
  width: 80px;
  height: 80px;
}

.circular-chart svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--border-purple);
  stroke-width: 4;
}

.circle-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.circle-fill.teal   { stroke: var(--color-purple-light); }
.circle-fill.orange { stroke: var(--color-peach); }
.circle-fill.gray   { stroke: #A7B9CE; }

.circle-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.circle-label .pct {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.circle-label .opt {
  font-size: 0.42rem;
  color: var(--color-text-faint);
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* ===== OPTIONS LIST ===== */
.option-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.option-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
}

.option-dot.teal   { background-color: var(--color-purple-light); }
.option-dot.orange { background-color: var(--color-peach); }
.option-dot.gray   { background-color: #A7B9CE; }

.option-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-dark);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* ===== NUMBER BADGES ===== */
.number-badges-row {
  display: flex;
  gap: 10px;
  margin: 1rem 0;
}

.number-badge {
  flex: 1;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  border-radius: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.number-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.number-badge.badge-gray   { background: linear-gradient(135deg, #A7B9CE, #8A99B0); }
.number-badge.badge-teal   { background: linear-gradient(135deg, var(--color-purple-light), var(--color-purple)); }
.number-badge.badge-orange { background: linear-gradient(135deg, var(--color-peach), #FF8C42); }
.number-badge.badge-dark   { background: linear-gradient(135deg, #2D2B6B, #1a1845); }

/* ===== STAT ITEMS (bottom left) ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.stat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
  color: white;
  font-size: 0.45rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  margin-top: 1px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1;
  background: linear-gradient(120deg, var(--color-purple), var(--color-peach));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-desc {
  font-size: 0.45rem;
  color: var(--color-text-faint);
  line-height: 1.4;
}

/* ===== PEOPLE ICONS ===== */
.people-section {
  margin-top: 8px;
}

.people-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.people-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-dark);
  letter-spacing: 0.5px;
  min-width: 44px;
}

.people-label span {
  font-size: 0.55rem;
  font-weight: 500;
  display: block;
  color: var(--color-text-muted);
}

.person-icons {
  display: flex;
  gap: 4px;
}

.person-icon svg {
  width: 22px;
  height: 38px;
}

/* ===== DIVIDER ===== */
.retro-divider {
  border: none;
  border-top: 1px solid var(--border-purple);
  margin: 10px 0;
}

/* ===== BOTTOM SECTION ===== */
.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bottom-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* ===== MAP DOTS ===== */
.map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(138, 79, 255, 0.2);
}

.map-dot.teal   { background-color: var(--color-purple-light); }
.map-dot.orange { background-color: var(--color-peach); }
.map-dot.gray   { background-color: #A7B9CE; }

/* ===== TOP NAVIGATION ===== */
.site-nav {
  max-width: 1280px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-wrapper);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.site-nav .nav-brand {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.2px;
  background: linear-gradient(125deg, #2D2B6B, var(--color-purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-right: auto;
  padding: 0 0.5rem;
  white-space: nowrap;
}

.site-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.site-nav .nav-link:hover {
  background: var(--color-purple-bg);
  color: var(--color-purple);
}

.site-nav .nav-link.active {
  background: linear-gradient(125deg, #2D2B6B, var(--color-purple));
  color: #fff;
  box-shadow: 0 3px 10px rgba(138, 79, 255, 0.3);
}

.site-nav .nav-link.active:hover {
  background: linear-gradient(125deg, #2D2B6B, var(--color-purple));
  color: #fff;
}

@media (max-width: 576px) {
  .site-nav .nav-brand { display: none; }
  .site-nav { justify-content: center; }
}

/* ===== INFOGRAPHIC PAGE COMPONENTS ===== */
.infographic-container {
  max-width: 1400px;
  margin: 0 auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.12);
}

.hero-modern {
  background: linear-gradient(125deg, #2D2B6B 0%, #4A3A9F 55%, #8A4FFF 100%);
  border-radius: 2rem;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-modern::after {
  content: "📊";
  font-size: 12rem;
  opacity: 0.08;
  position: absolute;
  bottom: -20px;
  right: -20px;
  pointer-events: none;
}

.stat-number-large {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-purple), var(--color-peach));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.metric-box {
  background: #f8fafd;
  border-radius: 1.5rem;
  padding: 1.2rem;
  transition: all 0.2s;
  border: 1px solid #eef2f8;
}

.progress-glass {
  background-color: #e2e8f0;
  border-radius: 40px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--color-purple), var(--color-purple-light));
  border-radius: 40px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  text-align: right;
}

.pie-chart-modern {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -8px rgba(0,0,0,0.05);
}

.badge-percent {
  background: var(--color-purple-bg);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-purple);
}

.table-modern {
  border-radius: 1.5rem;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.table-modern th {
  background: linear-gradient(125deg, #2D2B6B, var(--color-purple));
  color: white;
  font-weight: 600;
  border: none;
}

.table-modern td,
.table-modern th {
  padding: 1rem;
  border-bottom: 1px solid #eef2f8;
}

.table-modern tr:last-child td {
  border-bottom: none;
}

.illustration-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, var(--color-purple-bg), var(--color-purple-soft));
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.2s;
}

.illustration-icon:hover {
  transform: scale(1.05);
}

.editable {
  transition: all 0.1s ease;
  cursor: default;
  border-radius: 8px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.editable[contenteditable="true"] {
  background-color: #fff9e0;
  outline: 2px solid #ffc107;
  cursor: text;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.edit-mode-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 60px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.2s;
}

.edit-mode-btn:hover {
  transform: scale(1.02);
}

footer.infographic-footer {
  font-size: 0.8rem;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .hero-modern       { padding: 1.5rem; }
  .stat-number-large { font-size: 2.2rem; }
  .edit-mode-btn     { padding: 8px 18px; font-size: 0.8rem; bottom: 16px; right: 16px; }
}

/* ===== FOOTER NOTE ===== */
.footer-note {
  margin-top: 1.5rem;
  background: #F9F8FE;
  border-radius: 20px;
  padding: 0.7rem 1.2rem;
  font-size: 0.65rem;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px solid var(--border-peach);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .infographic-wrapper {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .number-badge {
    height: 56px;
    font-size: 1.5rem;
    border-radius: 14px;
  }
}
