/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/hello-elementor-child
Description: Child theme untuk Hello Elementor. Semua kustomisasi CSS Anda ada di file ini, aman saat theme induk di-update.
Author: Anda
Author URI: https://example.com
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
Tags: child-theme, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

/*
 * =====================================================================
 *  AREA KUSTOMISASI ANDA — mulai tulis CSS di bawah baris ini.
 *  File ini otomatis dimuat SETELAH theme.css Hello Elementor,
 *  jadi untuk selector & specificity yang sama, aturan Anda menang.
 * =====================================================================
 */

/*
 * Contoh 1 — Mengubah font dasar situs
 *
 * body {
 *     font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
 * }
 */

/*
 * Contoh 2 — Mengubah warna link
 *
 * a {
 *     color: #2563eb;
 * }
 * a:hover {
 *     color: #1d4ed8;
 * }
 */

/*
 * Contoh 3 — Menyesuaikan container konten (tema memakai 800px)
 *
 * .elementor-section-wrap,
 * .entry-content > * {
 *     max-width: 1140px;
 * }
 */

/*
 * Contoh 4 — Membuat header lengket saat di-scroll
 *
 * .site-header {
 *     position: sticky;
 *     top: 0;
 *     z-index: 999;
 *     background: #fff;
 * }
 */

/*
 * Contoh 5 — Menyembunyikan judul halaman di Elementor
 *
 * .page-title,
 * .entry-title {
 *     display: none;
 * }
 */

/*
 * CATATAN PENTING
 * - Elementor sering memakai selector yang lebih spesifik. Bila aturan Anda
 *   tidak berefek, tambahkan !important, contoh: color: #2563eb !important;
 * - Setiap kali Anda mengubah file ini, bersihkan cache (plugin cache + cache
 *   browser Ctrl+F5) agar CSS baru terlihat.
 */

/* ===== CODE INLINE ===== */
code {
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #f4f4f5;
  color: #e83e8c;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid #e1e1e3;
  white-space: nowrap;
}

/* ===== CODE BLOCK ===== */
pre {
  background-color: #1e1e2e;
  color: #cdd6f4;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  border-left: 4px solid #89b4fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  white-space: pre;
  font-size: inherit;
}

/* ===== RUMUS / FORMULA (LaTeX display) ===== */
.formula {
  display: block;
  text-align: center;
  font-family: 'Latin Modern Math', 'Times New Roman', serif;
  font-size: 1.15em;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

/* Rumus inline */
.formula-inline {
  font-family: 'Latin Modern Math', 'Times New Roman', serif;
  font-style: italic;
  background: #fff9e6;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border-bottom: 1px dashed #d4a017;
}

/* ===== VARIABEL / SIMBOL MATEMATIKA ===== */
.math-var {
  font-family: 'Latin Modern Math', 'Times New Roman', serif;
  font-style: italic;
  color: #2c3e50;
}

.math-op {
  font-family: 'Latin Modern Math', 'Times New Roman', serif;
  margin: 0 0.25em;
}

/* ===== KOTAK CATATAN RUMUS ===== */
.formula-box {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.formula-box .formula-title {
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SCROLLBAR UNTUK CODE BLOCK ===== */
pre::-webkit-scrollbar {
  height: 6px;
}

pre::-webkit-scrollbar-track {
  background: transparent;
}

pre::-webkit-scrollbar-thumb {
  background: #6c7086;
  border-radius: 3px;
}

pre::-webkit-scrollbar-thumb:hover {
  background: #89b4fa;
}

/* ===== DARK MODE (opsional) ===== */
@media (prefers-color-scheme: dark) {
  code {
    background-color: #2a2a3c;
    color: #f5a97f;
    border-color: #3a3a50;
  }

  .formula {
    background: #1e1e2e;
    border-color: #3a3a50;
    color: #cdd6f4;
  }

  .formula-inline {
    background: #3a3020;
    border-bottom-color: #f9e2af;
    color: #f9e2af;
  }

  .formula-box {
    background: linear-gradient(135deg, #1e1e2e 0%, #252538 100%);
    border-color: #4a4a70;
  }

  .formula-box .formula-title {
    color: #89b4fa;
  }

  .math-var {
    color: #cdd6f4;
  }
}
