/*
Theme Name: Nile Codes
Theme URI: https://nilecodes.com/
Author: Nile Codes
Description: Single-package custom theme for the Nile Codes platform. P15 (owner decision) merges the Core runtime into this theme (see functions.php + inc/core.php); the editorial boundary still holds — view/layout code lives in inc/, business logic in core/. Rendering and layout concerns plus the P15 licensing presentation surfaces; licensing, commerce, leads, and API logic belong to the merged core/ and must not be reimplemented in inc/.
Version: 1.3.0
Requires at least: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nilecodes-theme
Tags: right-to-left, translation-ready, custom-logo
*/

/*
==============================================================================
NILE CODES — DELTA GLOW LAYER (P15, art direction C)
==============================================================================
Tokens (tokens.css) carry the full dark-canvas palette; this final stylesheet
adds the Delta Glow treatment on top of the P3 base/component/structure layers:
nebula hero background, neon delta (Λ) glyph, glowing card surfaces, focus &
button glow. Semantic tokens only (no raw hex here — see tokens.css). RTL-first.
==============================================================================
*/

body {
  background-image: var(--nc-ambient-aurora);
  background-attachment: fixed;
}

/* ---------------- Delta Glow hero: nebula + neon delta glyph ---------------- */
.nc-hero {
  background-image: var(--nc-gradient-aurora);
}
.nc-hero::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -5rem;
  inline-size: 16rem;
  block-size: 16rem;
  transform: translateY(-50%);
  background: var(--nc-gradient-delta);
  clip-path: polygon(50% 4%, 94% 94%, 50% 72%, 6% 94%);
  filter: drop-shadow(var(--nc-glow-accent)) drop-shadow(var(--nc-glow-violet));
  opacity: 0.85;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .nc-hero::before { filter: none; }
}

/* gradient word inside invest hero titles (where the accent span is used) */
.nc-hero__title .nc-hero__accent {
  background: var(--nc-gradient-delta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(var(--nc-glow-accent-soft));
}

/* header: soft glow seam under the sticky bar */
.site-header {
  box-shadow: var(--nc-glow-header);
}

/* ---------------- glowing card + panel surfaces ---------------- */
.nc-card,
.license-model__cell,
.license-row,
.portal-profile,
.portal-download,
.product-layout__side,
.nc-steps > li,
.case-meta div,
.legal-doc {
  background-color: var(--nc-color-surface);
  background-image: var(--nc-color-panel-glow);
  box-shadow: var(--nc-glow-card);
}
.nc-card--link:hover {
  box-shadow: var(--nc-glow-accent);
  border-color: var(--nc-color-accent-soft-border);
  transform: translateY(-3px);
}

/* ---------------- neon interactions ---------------- */
.nc-button--primary:hover { box-shadow: var(--nc-glow-accent); }
.nc-button--primary:focus-visible { box-shadow: var(--nc-glow-strong); }
.nc-button--inverse:hover { box-shadow: var(--nc-glow-accent-soft); }

.nc-input:focus-visible,
.nc-select:focus-visible,
.nc-textarea:focus-visible {
  box-shadow: var(--nc-glow-accent-soft);
  border-color: var(--nc-color-focus);
}

/* selected nav state glows (current page / active filter) */
.nc-nav a[aria-current="page"],
.nc-nav a.nc-is-selected {
  box-shadow: var(--nc-glow-accent-soft);
}