/*
Theme Name: Hello Elementor Child - HodlGuide
Theme URI: https://hodlguide.pro
Description: HodlGuide design system - bypasses broken Elementor kit-save pipeline. Colors, fonts, spacing, and button styles all defined as CSS custom properties.
Author: HodlGuide
Author URI: https://hodlguide.pro
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child-hodlguide
*/

/* ============================================================
   IMPORT PARENT THEME STYLES
   ============================================================ */
@import url("../hello-elementor/style.css");

/* ============================================================
   GOOGLE FONTS
   Inter for everything, JetBrains Mono for numbers/tickers
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

/* ============================================================
   DESIGN TOKENS — HodlGuide design system
   Change values here, the whole site updates.
   ============================================================ */
:root {
  /* Colors — System */
  --hg-brand-blue: #2563EB;
  --hg-brand-blue-hover: #1D4ED8;
  --hg-deep-navy: #0F172A;
  --hg-ink: #1F2937;
  --hg-signal-green: #10B981;

  /* Colors — Utility */
  --hg-border: #E5E7EB;
  --hg-soft-bg: #F8FAFC;
  --hg-warning: #F59E0B;
  --hg-white: #FFFFFF;

  /* Typography */
  --hg-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hg-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Type scale — desktop */
  --hg-h1: 48px;
  --hg-h2: 36px;
  --hg-h3: 24px;
  --hg-h4: 20px;
  --hg-h5: 17px;
  --hg-h6: 15px;
  --hg-body: 17px;
  --hg-small: 14px;

  /* Spacing scale */
  --hg-space-1: 4px;
  --hg-space-2: 8px;
  --hg-space-3: 16px;
  --hg-space-4: 24px;
  --hg-space-5: 32px;
  --hg-space-6: 48px;
  --hg-space-7: 64px;
  --hg-space-8: 96px;
  --hg-space-9: 128px;

  /* Layout */
  --hg-container: 1200px;
  --hg-radius: 8px;
  --hg-radius-card: 12px;

  /* Transition */
  --hg-transition: 0.2s ease;
}

/* Mobile type scale */
@media (max-width: 767px) {
  :root {
    --hg-h1: 32px;
    --hg-h2: 28px;
    --hg-h3: 20px;
    --hg-h4: 18px;
    --hg-h5: 16px;
    --hg-h6: 14px;
    --hg-body: 16px;
  }
}

/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */
body {
  font-family: var(--hg-font-body);
  font-size: var(--hg-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--hg-ink);
  background: var(--hg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hg-font-body);
  color: var(--hg-deep-navy);
  font-weight: 700;
  margin-top: 0;
}

h1 { font-size: var(--hg-h1); line-height: 1.1; }
h2 { font-size: var(--hg-h2); line-height: 1.2; }
h3 { font-size: var(--hg-h3); line-height: 1.3; font-weight: 600; }
h4 { font-size: var(--hg-h4); line-height: 1.4; font-weight: 600; }
h5 { font-size: var(--hg-h5); line-height: 1.4; font-weight: 600; }
h6 { font-size: var(--hg-h6); line-height: 1.4; font-weight: 600; }

p {
  margin-top: 0;
  margin-bottom: var(--hg-space-3);
}

/* Numbers, prices, tickers */
.hg-mono, code, .price, .ticker {
  font-family: var(--hg-font-mono);
  font-weight: 500;
}

/* ============================================================
   LINKS
   ============================================================ */
a {
  color: var(--hg-brand-blue);
  text-decoration: none;
  transition: color var(--hg-transition);
}

a:hover {
  color: var(--hg-brand-blue-hover);
  text-decoration: underline;
}

/* Don't underline links inside Elementor buttons */
.elementor-button-link, .elementor-button {
  text-decoration: none !important;
}

/* ============================================================
   BUTTONS — Primary
   Targets Elementor's button widget AND standard <button> tags
   ============================================================ */
.elementor-button,
.elementor-button-link,
button.wp-block-button__link,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  font-family: var(--hg-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--hg-white);
  background-color: var(--hg-brand-blue);
  border: none;
  border-radius: var(--hg-radius);
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color var(--hg-transition);
  display: inline-block;
  text-decoration: none;
}

.elementor-button:hover,
.elementor-button-link:hover,
button.wp-block-button__link:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--hg-brand-blue-hover);
  color: var(--hg-white);
}

/* Secondary button — apply via custom class .hg-btn-secondary */
.hg-btn-secondary,
.elementor-button.hg-btn-secondary {
  background-color: transparent;
  color: var(--hg-ink);
  border: 1px solid var(--hg-border);
}

.hg-btn-secondary:hover,
.elementor-button.hg-btn-secondary:hover {
  background-color: var(--hg-soft-bg);
  color: var(--hg-deep-navy);
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
  font-family: var(--hg-font-body);
  font-size: 16px;
  color: var(--hg-ink);
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 12px 16px;
  transition: border-color var(--hg-transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--hg-brand-blue);
}

/* ============================================================
   LAYOUT — Container max-width
   ============================================================ */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con-boxed {
  max-width: var(--hg-container);
}

/* ============================================================
   CARDS — reusable utility class .hg-card
   ============================================================ */
.hg-card {
  background: var(--hg-white);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-card);
  padding: var(--hg-space-4);
  transition: box-shadow var(--hg-transition), transform var(--hg-transition);
}

.hg-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   BADGES — for "Best for beginners" etc.
   Apply via .hg-badge with modifier classes
   ============================================================ */
.hg-badge {
  display: inline-block;
  font-family: var(--hg-font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hg-badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--hg-signal-green);
}

.hg-badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--hg-warning);
}

.hg-badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--hg-brand-blue);
}

/* ============================================================
   SECTION HELPERS
   Apply .hg-section-alt to a section for soft gray background
   Apply .hg-section-dark for deep navy background
   ============================================================ */
.hg-section-alt {
  background-color: var(--hg-soft-bg);
}

.hg-section-dark {
  background-color: var(--hg-deep-navy);
  color: var(--hg-white);
}

.hg-section-dark h1,
.hg-section-dark h2,
.hg-section-dark h3,
.hg-section-dark h4,
.hg-section-dark h5,
.hg-section-dark h6 {
  color: var(--hg-white);
}

/* ============================================================
   DIVIDERS
   ============================================================ */
hr {
  border: none;
  border-top: 1px solid var(--hg-border);
  margin: var(--hg-space-6) 0;
}

/* ============================================================
   IMAGES
   ============================================================ */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hg-radius);
}

/* ============================================================
   TABLES — common for affiliate comparison content
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--hg-font-body);
  font-size: var(--hg-body);
}

table th,
table td {
  padding: var(--hg-space-3) var(--hg-space-4);
  border-bottom: 1px solid var(--hg-border);
  text-align: left;
}

table th {
  background: var(--hg-soft-bg);
  font-weight: 600;
  color: var(--hg-deep-navy);
}

table tr:hover {
  background: var(--hg-soft-bg);
}

/* ============================================================
   ELEMENTOR HEADING OVERRIDES
   Force Elementor headings to use our type scale
   ============================================================ */
.elementor-heading-title {
  font-family: var(--hg-font-body) !important;
  color: var(--hg-deep-navy);
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  font-family: var(--hg-font-body);
  color: var(--hg-ink);
}
