/*
Theme Name: CryptoEdu
Theme URI: https://cryptoedu.local
Description: Tema pendidikan kripto yang terpercaya, bersih, dan edukatif untuk pengguna Indonesia
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Author: CryptoEdu Team
Author URI: https://cryptoedu.local
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptoedu
Domain Path: /languages
*/

/* ========================================
   RESET & DASAR
   ======================================== */
:root {
  --primary-color: #1a3a52;      /* Deep Navy Blue - Terpercaya */
  --accent-color: #27ae60;       /* Green - Kesuksesan */
  --accent-light: #52c9a8;       /* Light Teal - Soft accent */
  --warning-color: #f39c12;      /* Orange - Peringatan */
  --danger-color: #e74c3c;       /* Red - Risiko */
  --bg-light: #f8f9fa;
  --text-dark: #2c3e50;
  --text-gray: #7f8c8d;
  --border-color: #e0e0e0;
  --content-width: 750px;
  --line-height-body: 1.7;
  --gap-section: 3rem;
}

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: var(--line-height-body);
  color: var(--text-dark);
  background-color: #fff;
}

/* ========================================
   HEADING
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ========================================
   PARAGRAPH & LIST
   ======================================== */
p {
  margin-bottom: 1.5em;
  line-height: var(--line-height-body);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

li {
  margin-bottom: 0.5em;
  line-height: var(--line-height-body);
}

/* ========================================
   CALLOUT BOX (提示/警告框)
   ======================================== */
.callout {
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 5px solid;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.callout.info {
  border-left-color: var(--primary-color);
  background-color: rgba(26, 58, 82, 0.05);
}

.callout.info::before {
  content: "ℹ️ Info";
  font-weight: 700;
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.callout.tip {
  border-left-color: var(--accent-color);
  background-color: rgba(39, 174, 96, 0.05);
}

.callout.tip::before {
  content: "💡 Tips";
  font-weight: 700;
  display: block;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.callout.warning {
  border-left-color: var(--warning-color);
  background-color: rgba(243, 156, 18, 0.05);
}

.callout.warning::before {
  content: "⚠️ Peringatan";
  font-weight: 700;
  display: block;
  color: var(--warning-color);
  margin-bottom: 0.5rem;
}

.callout.danger {
  border-left-color: var(--danger-color);
  background-color: rgba(231, 76, 60, 0.05);
}

.callout.danger::before {
  content: "🚨 Risiko Tinggi";
  font-weight: 700;
  display: block;
  color: var(--danger-color);
  margin-bottom: 0.5rem;
}

.callout p {
  margin-bottom: 0;
}

.callout p:not(:last-child) {
  margin-bottom: 0.75em;
}

/* ========================================
   STEP CARD (步骤卡)
   ======================================== */
.step-card {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: flex-start;
}

.step-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-card__content h4 {
  margin-top: 0;
}

/* ========================================
   TABLE (表格)
   ======================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  overflow-x: auto;
}

thead {
  background: var(--primary-color);
  color: white;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

tbody tr:hover {
  background-color: rgba(39, 174, 96, 0.05);
}

/* ========================================
   BUTTON
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.2);
  color: white;
  text-decoration: none;
}

.btn.btn-primary {
  background: var(--primary-color);
}

.btn.btn-success {
  background: var(--accent-color);
}

.btn.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr 300px;
  }
  
  .content-wrapper.with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.75rem;
  }
}
