/* ============================================================
   NicoraX — Hero "Split Frame" CSS
   Datei: /assets/css/hero-splitframe.css
   ============================================================ */

/* ── Fonts: system-font fallback (Google Fonts per CSP blockiert) ── */
:root {
  --nx-sf-cyan:          #00f5ff;
  --nx-sf-cyan-dim:      rgba(0, 245, 255, 0.15);
  --nx-sf-cyan-border:   rgba(0, 245, 255, 0.25);
  --nx-sf-font-mono:     'Courier New', 'SF Mono', 'Fira Code', monospace;
  --nx-sf-font-display:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --nx-sf-hero-h:        540px;
  --nx-sf-split:         50%;
}

/* ══════════════════════════════════════════════════════════════
   HERO — SPLIT FRAME LAYOUT
   ══════════════════════════════════════════════════════════════ */
.nx-sf-hero {
  display: grid;
  grid-template-columns: var(--nx-sf-split) 1fr;
  height: var(--nx-sf-hero-h);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 45, 45, 0.12);
}

/* ── LEFT PANEL ─────────────────────────────────────────────── */
.nx-sf-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px 40px 48px;
  background: var(--color-bg);
  border-right: 1px solid rgba(255, 45, 45, 0.1);
  position: relative;
  z-index: 1;
}

/* Subtle left-panel grid texture */
.nx-sf-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 45, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 45, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Eyebrow ── */
.nx-sf-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nx-sf-font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.nx-sf-eyebrow__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: nx-sf-blink 2s ease-in-out infinite;
}

@keyframes nx-sf-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Title ── */
.nx-sf-title {
  display: flex;
  flex-direction: column;
  font-family: var(--nx-sf-font-display);
  font-size: clamp(44px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -1px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.nx-sf-title__line { display: block; }

/* Ghost outline — red */
.nx-sf-title__line--stroke-red {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 45, 45, 0.55);
  text-stroke: 1.5px rgba(255, 45, 45, 0.55);
}

/* Ghost outline — cyan */
.nx-sf-title__line--stroke-cyan {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 245, 255, 0.4);
  text-stroke: 1.5px rgba(0, 245, 255, 0.4);
}

/* ── Description ── */
.nx-sf-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 320px;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

/* ── CTA Buttons ── */
.nx-sf-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.nx-sf-btn-primary {
  font-family: var(--nx-sf-font-mono);
  font-size: 11px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0 !important;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  padding: 14px 28px !important;
}

.nx-sf-btn-outline {
  font-size: 12px !important;
  letter-spacing: 1px;
  border-radius: 0 !important;
}

/* ── Stats Row ── */
.nx-sf-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-sf-stat {
  display: flex;
  flex-direction: column;
  padding-right: 28px;
  margin-right: 28px;
}

.nx-sf-stat__num {
  font-family: var(--nx-sf-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 4px;
}

.nx-sf-stat__num sup {
  font-size: 12px;
  color: var(--color-accent);
  vertical-align: super;
}

.nx-sf-stat__label {
  font-family: var(--nx-sf-font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.nx-sf-stat__divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.07);
  margin-right: 28px;
  flex-shrink: 0;
}

/* ── RIGHT PANEL ─────────────────────────────────────────────── */
.nx-sf-right {
  position: relative;
  overflow: hidden;
}

.nx-sf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 8%;
  display: block;
  filter: saturate(1.1) contrast(1.04);
  transition: transform 0.6s ease;
}

.nx-sf-right:hover .nx-sf-img {
  transform: scale(1.02);
}

/* Image → left panel fade */
.nx-sf-img-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, transparent 55%, var(--color-bg) 100%),
    linear-gradient(to top, rgba(12, 10, 22, 0.6) 0%, transparent 30%);
  pointer-events: none;
}

/* Frame decorations */
.nx-sf-frame {
  position: absolute;
  pointer-events: none;
}

.nx-sf-frame--top {
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 245, 255, 0.35), transparent 70%);
}

.nx-sf-frame--right {
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0, 245, 255, 0.3), transparent 60%);
}

.nx-sf-frame--corner {
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-top: 1px solid rgba(0, 245, 255, 0.4);
  border-right: 1px solid rgba(0, 245, 255, 0.4);
}

/* AI Badge */
.nx-sf-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 10, 22, 0.82);
  border: 1px solid var(--nx-sf-cyan-border);
  padding: 10px 16px;
  font-family: var(--nx-sf-font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--nx-sf-cyan);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nx-sf-badge__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-sf-cyan);
  animation: nx-sf-blink 1.8s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY BAR
   ══════════════════════════════════════════════════════════════ */
.nx-sf-catbar {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nx-sf-catbar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nx-sf-catbar__inner::-webkit-scrollbar { display: none; }

.nx-sf-catbar__tabs {
  display: flex;
  gap: 0;
  flex: 1;
}

.nx-sf-catbar__tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  font-family: var(--nx-sf-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
  text-decoration: none;
  position: relative;
}

.nx-sf-catbar__tab:first-child { padding-left: 0; }

.nx-sf-catbar__tab:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

.nx-sf-catbar__tab--active {
  color: var(--color-accent) !important;
}

.nx-sf-catbar__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--color-accent);
}

.nx-sf-catbar__count {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0;
}

.nx-sf-catbar__tab--active .nx-sf-catbar__count {
  color: rgba(255, 45, 45, 0.5);
}

/* Search shortcut — right side */
.nx-sf-catbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--nx-sf-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.nx-sf-catbar__search:hover {
  border-color: var(--nx-sf-cyan-border);
  color: var(--nx-sf-cyan);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nx-sf-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .nx-sf-right {
    height: 300px;
    order: -1;
  }

  .nx-sf-left {
    padding: 36px 24px 32px;
    border-right: none;
    border-top: 1px solid rgba(255, 45, 45, 0.1);
  }

  .nx-sf-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .nx-sf-actions { flex-wrap: wrap; }

  .nx-sf-btn-primary,
  .nx-sf-btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .nx-sf-right { height: 220px; }

  .nx-sf-stats {
    gap: 0;
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .nx-sf-stat {
    padding-right: 16px;
    margin-right: 16px;
  }

  .nx-sf-catbar__search { display: none; }
}
