/* ============================================================
   Restyling for the two existing astrology plugins so their
   calculators read as native Astrocrony sections rather than a
   bolted-on widget. Pure CSS layering only — no plugin PHP is
   edited; see memory/reference notes on each plugin's shortcode
   and CSS-custom-property theming hooks.
============================================================ */

/* -------------------- vedic-birth-chart --------------------
   Same print-order caveat as the numerology plugin below: this plugin
   also enqueues its CSS from inside the shortcode's render callback, so
   it can print after this stylesheet even though this loads normally in
   <head>. Its own selectors are bare single classes (.vbc-card, etc.), so
   this is a tie on specificity — !important on the properties it also
   sets keeps this file the reliable winner regardless of print order. */
.vbc-app {
  --vbc-bg: transparent;
  --vbc-bg-2: transparent;
  --vbc-primary: #6E3FF3;
  --vbc-primary-dark: #2A1C6B;
  --vbc-accent: #F4C542;
  --vbc-accent-soft: #FBE6A2;
  --vbc-ink: #F3EEFF;
  --vbc-muted: #C8C1E8;
  --vbc-muted-2: #A992E0;
  --vbc-border: rgba(198, 168, 255, .26);
  --vbc-surface: linear-gradient(160deg, rgba(158, 110, 255, .16), rgba(30, 20, 80, .34));
  --vbc-surface-alt: rgba(41, 25, 96, .82);
  --vbc-error: #FF8A8A;
  --vbc-error-bg: rgba(255, 107, 107, .12);
  --vbc-success: #6EE7B7;
  --vbc-radius: 22px;
  --vbc-shadow: 0 22px 50px -30px rgba(0, 0, 0, .95);
  --vbc-font-display: 'Cinzel', serif;
  --vbc-font-serif: 'Cormorant Garamond', serif;
  --vbc-font: 'Outfit', sans-serif;
  max-width: 100%;
}

.vbc-card {
  background: linear-gradient(160deg, rgba(41, 25, 96, .9), rgba(18, 11, 52, .95)) !important;
  border: 1px solid rgba(220, 199, 255, .22) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.vbc-button--primary {
  background-image: radial-gradient(130% 170% at 26% -10%, rgba(255, 255, 255, .55), transparent 55%),
    linear-gradient(180deg, #FFF6DC 0%, #F4C542 52%, #E0A92E 100%) !important;
  color: #2A1E00 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .75), 0 0 28px -8px rgba(244, 197, 66, .75) !important;
}
.vbc-button--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .8), 0 0 44px -6px rgba(244, 197, 66, 1) !important; }
.vbc-button--ghost { border-color: rgba(214, 196, 255, .55) !important; color: #FFFFFF !important; }

.vbc-table th { background: rgba(110, 63, 243, .18) !important; color: #FFF6E4 !important; }
.vbc-table td, .vbc-table th { border-color: rgba(198, 168, 255, .18) !important; }
.vbc-chart-svg-wrap svg { filter: drop-shadow(0 0 24px rgba(110, 63, 243, .3)); }

/* The plugin's tables (Planetary Positions, Dasha) are wider than most
   phones/tablets (min-width: 640px) and already scroll horizontally inside
   .vbc-table-wrap (overflow-x:auto) — but on Windows/macOS the scrollbar is
   invisible until hovered, so it's easy to miss that there's more to see.
   Force a slim, always-visible, on-brand scrollbar instead of the OS default. */
.vbc-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #F4C542 rgba(41, 25, 96, .4);
  padding-bottom: 4px; /* keeps the scrollbar from crowding the border-radius corners */
}
.vbc-table-wrap::-webkit-scrollbar {
  height: 10px;
}
.vbc-table-wrap::-webkit-scrollbar-track {
  background: rgba(41, 25, 96, .4);
  border-radius: 100px;
}
.vbc-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #C6A8FF, #F4C542);
  border-radius: 100px;
}
.vbc-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #F4C542;
}

/* -------------------- custom-chaldean-numerology --------------------
   The source astrocronyHTML numerology.html had its own hand-rolled
   calculator (.nm-panel/.nm-input/.nm-card/.nm-letter/.nm-chart, all
   still in theme.css) which this page replaced with the real plugin's
   [custom_chaldean_numerology] shortcode. The plugin's default look is a
   light, system-font card (see its own calculator.css) — this reskins it
   to read as the same calculator the .nm-* system was designed for:
   Cinzel display numerals, gold/violet cosmic palette, Outfit body copy,
   pill buttons.

   IMPORTANT: the plugin enqueues its own calculator.css from inside the
   shortcode's render callback rather than from `wp_head`, so on a normal
   page load its <link> prints INLINE, mid-body — after this theme
   stylesheet, which loads normally in <head>. That means it comes AFTER
   this file in the cascade. Its own selectors are also two classes deep
   (`.ccn-calculator .ccn-title`, etc.), so a bare `.ccn-title` here would
   lose on specificity even ignoring order. Every rule below is written
   `.ccn-calculator .ccn-x` (matching that specificity) plus !important on
   the specific properties the plugin also sets on the same element, so
   this always wins regardless of print order. No plugin PHP is touched —
   this is pure CSS layering. */
.ccn-calculator {
  --ccn-primary: #F4C542;
  --ccn-secondary: #6E3FF3;
  --ccn-background: transparent;
  --ccn-card: rgba(41, 25, 96, .82);
  --ccn-text: #F3EEFF;
  --ccn-text-muted: #C8C1E8;
  --ccn-border: rgba(198, 168, 255, .26);
  --ccn-error: #FF8A8A;
  --ccn-radius: 22px;
  max-width: 100% !important;
  padding: clamp(1.4rem, 3vw, 2.2rem) !important;
  font-family: 'Outfit', sans-serif !important;
  background: linear-gradient(160deg, rgba(41, 25, 96, .9), rgba(18, 11, 52, .95)) !important;
  background-clip: padding-box !important;
  box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

/* ---- header ----
   (plain solid color, not the gradient-clip-text technique .nm-h2 uses
   elsewhere — that relies on -webkit-background-clip:text/-webkit-text-
   fill-color, which was rendering as an opaque gradient box with illegible
   dark text here, likely fighting the plugin's own background/color
   declarations on the same element. Solid color is simpler and reliable.) */
.ccn-calculator .ccn-title {
  font-family: 'Cinzel', serif !important; font-weight: 700 !important;
  background: none !important;
  color: #FBE6A2 !important;
}
.ccn-calculator .ccn-title::after { content: none !important; }
.ccn-calculator .ccn-description { color: rgba(198, 168, 255, .8) !important; font-family: 'Outfit', sans-serif !important; }
.ccn-calculator .ccn-section-heading { font-family: 'Cinzel', serif !important; color: #FFF6E4 !important; }

/* ---- static Chaldean chart: reskin the <table> to echo .nm-chart's
   8-column gold-hairline panels as closely as a table allows ---- */
.ccn-calculator .ccn-chart-wrap {
  background: linear-gradient(168deg, rgba(52, 34, 124, .5), rgba(19, 12, 58, .78)) !important;
  border: 1px solid rgba(244, 197, 66, .26) !important;
  border-radius: 18px !important;
}
.ccn-calculator .ccn-chart-intro { color: rgba(198, 168, 255, .8) !important; }
.ccn-calculator .ccn-chart-table th,
.ccn-calculator .ccn-chart-table td { border-color: rgba(244, 197, 66, .2) !important; }
.ccn-calculator .ccn-chart-value {
  background: linear-gradient(160deg, rgba(126, 86, 236, .55), rgba(32, 20, 92, .9)) !important;
  color: #F4C542 !important; font-family: 'Cinzel', serif !important; font-size: 1.15rem !important;
}
.ccn-calculator .ccn-chart-letters {
  background: transparent !important; color: rgba(255, 255, 255, .88) !important;
  font-family: 'Outfit', sans-serif !important; letter-spacing: .06em !important;
}

/* ---- form: match .nm-label / .nm-input ---- */
.ccn-calculator .ccn-label {
  font-family: 'Outfit', sans-serif !important; font-size: .74rem !important; letter-spacing: .2em !important;
  text-transform: uppercase !important; color: #F4C542 !important; font-weight: 600 !important;
}
.ccn-calculator .ccn-name-input {
  background: rgba(20, 13, 62, .6) !important;
  border: 1px solid rgba(198, 168, 255, .3) !important;
  color: #FFF6E4 !important;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif !important;
}
.ccn-calculator .ccn-name-input::placeholder { color: rgba(198, 168, 255, .5) !important; }
.ccn-calculator .ccn-name-input:focus-visible { outline: none !important; border-color: #F4C542 !important; box-shadow: 0 0 0 3px rgba(244, 197, 66, .16) !important; }

/* ---- buttons: match .btn-gold's gradient pill ---- */
.ccn-calculator .ccn-calculate-btn,
.ccn-calculator .ccn-print-btn {
  background: none !important;
  background-image: radial-gradient(130% 170% at 26% -10%, rgba(255, 255, 255, .55), transparent 55%),
    linear-gradient(180deg, #FFF6DC 0%, #F4C542 52%, #E0A92E 100%) !important;
  color: #2A1E00 !important;
  font-weight: 700 !important;
  font-family: 'Outfit', sans-serif !important;
  border: none !important;
  border-radius: 100px !important;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .75), 0 0 28px -8px rgba(244, 197, 66, .75) !important;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ccn-calculator .ccn-calculate-btn:hover,
.ccn-calculator .ccn-print-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .8), 0 0 44px -6px rgba(244, 197, 66, 1) !important;
}
.ccn-calculator .ccn-print-btn {
  background-image: none !important;
  background: transparent !important;
  border: 1px solid rgba(214, 196, 255, .55) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}
.ccn-calculator .ccn-print-btn:hover {
  background: rgba(244, 197, 66, .1) !important; border-color: #F4C542 !important; color: #F4C542 !important;
}

/* ---- results: big Cinzel gold numerals like .nm-card .val ---- */
.ccn-calculator .ccn-results-heading { font-family: 'Cinzel', serif !important; color: #FFF6E4 !important; letter-spacing: .06em !important; }
.ccn-calculator .ccn-card {
  background: linear-gradient(160deg, rgba(158, 110, 255, .16), rgba(30, 20, 80, .34)) !important;
  border: 1px solid rgba(198, 168, 255, .26) !important;
  text-align: center !important;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.ccn-calculator .ccn-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 197, 66, .6) !important;
  box-shadow: 0 14px 40px rgba(244, 197, 66, .16), 0 0 0 1px rgba(244, 197, 66, .25) !important;
}
.ccn-calculator .ccn-card-title {
  font-family: 'Outfit', sans-serif !important; font-size: .68rem !important; letter-spacing: .22em !important;
  color: rgba(198, 168, 255, .85) !important; font-weight: 600 !important; text-transform: uppercase;
}
.ccn-calculator .ccn-card:hover .ccn-card-title { color: #F4C542 !important; }
.ccn-calculator .ccn-card-value {
  font-family: 'Cinzel', serif !important; font-weight: 700 !important;
  font-size: clamp(2rem, 5vw, 2.8rem) !important; line-height: 1.05 !important;
  color: #F4C542 !important; margin-top: .5rem !important;
  transition: text-shadow .32s ease, color .32s ease;
}
.ccn-calculator .ccn-card:hover .ccn-card-value { color: #FFF3CE !important; text-shadow: 0 0 26px rgba(244, 197, 66, .7); }
.ccn-calculator .ccn-badge {
  background: rgba(244, 197, 66, .18) !important; color: #FBE6A2 !important;
  font-family: 'Outfit', sans-serif !important; border: 1px solid rgba(244, 197, 66, .4);
}
.ccn-calculator .ccn-card-note { color: rgba(198, 168, 255, .7) !important; }
.ccn-calculator .ccn-card-breakdown {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace !important;
  color: #C8C1E8 !important; letter-spacing: .02em;
}
.ccn-calculator .ccn-card-short { color: #E6DDFF !important; font-family: 'Outfit', sans-serif !important; }
.ccn-calculator .ccn-report summary { color: #F4C542 !important; font-family: 'Outfit', sans-serif !important; }
.ccn-calculator .ccn-report p { color: #E6DDFF !important; }
.ccn-calculator .ccn-error {
  background: rgba(255, 138, 138, .12) !important;
  border-color: #FF8A8A !important;
  color: #FFB4A8 !important;
}

/* ---- static explanation copy ---- */
.ccn-calculator .ccn-explanation h4 { font-family: 'Cinzel', serif !important; color: #FFF6E4 !important; }
.ccn-calculator .ccn-explanation p { color: rgba(198, 168, 255, .8) !important; }

/* Graceful-degradation notice shown by astrocrony_render_shortcode() when
   either plugin is inactive (see inc/helpers.php). */
.astrocrony-plugin-missing {
  padding: 2rem;
  text-align: center;
  color: #C8C1E8;
}
