/*
Theme Name: BounceKill
Theme URI: https://bouncekill.com
Author: BounceKill
Author URI: https://bouncekill.com
Description: Premium SaaS-style block theme matching the BounceKill product landing — dark surfaces, emerald accent, Geist typography, glass nav, gradient hero. Designed for marketing sites and docs that need to feel like infrastructure-grade product.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bouncekill
Tags: full-site-editing, block-patterns, one-column, two-columns, three-columns, custom-colors, custom-menu, dark-mode-support, sticky-post, threaded-comments
*/

/* ============================================================
   Design tokens (ported from BounceKill product landing CSS)
   ============================================================ */
:root,
.editor-styles-wrapper {
  --bk-bg: #0A0A0B;
  --bk-bg-2: #0E0E11;
  --bk-surface: #111114;
  --bk-surface-2: #17171C;
  --bk-border: rgba(255, 255, 255, 0.06);
  --bk-border-strong: rgba(255, 255, 255, 0.10);
  --bk-fg: #F5F5F7;
  --bk-fg-muted: #A1A1A6;
  --bk-fg-dim: #6B6B73;
  --bk-emerald: #34D399;
  --bk-emerald-2: #10B981;
  --bk-cyan: #22D3EE;
  --bk-valid: #34D399;
  --bk-invalid: #F87171;
  --bk-risky: #FB923C;
  --bk-catch-all: #FBBF24;
  --bk-disposable: #C084FC;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bk-bg);
  color: var(--bk-fg);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}

::selection { background: rgba(52, 211, 153, 0.18); color: var(--bk-emerald); }

/* Headings — gradient text on dark surface */
.bk-grad-text {
  background: linear-gradient(180deg, #FAFAFA 0%, #B8B8BD 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bk-grad-emerald {
  background: linear-gradient(135deg, #34D399 0%, #22D3EE 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Eyebrow label (mono uppercase) */
.bk-eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bk-fg-muted);
}
.bk-eyebrow--emerald { color: var(--bk-emerald); }

/* Card primitive */
.bk-card {
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: 16px;
  padding: 28px 26px;
}
.bk-card--elevated {
  background: linear-gradient(180deg, #16161B 0%, #111114 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
}

/* Status pill (matches product app) */
.bk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Geist Mono', ui-monospace, monospace;
  border: 1px solid;
}
.bk-badge .dot { width: 6px; height: 6px; border-radius: 999px; }
.bk-badge--valid { background: rgba(52,211,153,0.08); color: #6EE7B7; border-color: rgba(52,211,153,0.18); }
.bk-badge--valid .dot { background: var(--bk-valid); box-shadow: 0 0 0 3px rgba(52,211,153,0.15); }
.bk-badge--invalid { background: rgba(248,113,113,0.08); color: #FCA5A5; border-color: rgba(248,113,113,0.18); }
.bk-badge--invalid .dot { background: var(--bk-invalid); }
.bk-badge--risky { background: rgba(251,146,60,0.08); color: #FDBA74; border-color: rgba(251,146,60,0.18); }
.bk-badge--risky .dot { background: var(--bk-risky); }

/* Buttons */
.wp-block-button .wp-block-button__link,
.bk-btn-primary {
  background: linear-gradient(180deg, #3DDBA3 0%, #10B981 100%);
  color: #052e21 !important;
  font-weight: 580 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 0 0 1px rgba(52,211,153,0.4),
              0 8px 24px -8px rgba(52,211,153,0.55);
  transition: box-shadow 200ms ease;
}
.wp-block-button .wp-block-button__link:hover,
.bk-btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset,
              0 0 0 1px rgba(52,211,153,0.55),
              0 12px 32px -8px rgba(52,211,153,0.75);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.bk-btn-ghost {
  background: rgba(255,255,255,0.04) !important;
  color: var(--bk-fg) !important;
  border: 1px solid var(--bk-border-strong) !important;
  border-radius: 12px !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.bk-btn-ghost:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

/* Nav glass effect */
.bk-glass-nav {
  background: rgba(10,10,11,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bk-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Hero background ornaments */
.bk-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bk-glow-radial {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Live status dot animation */
@keyframes bk-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.45); }
  50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.bk-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--bk-emerald);
  animation: bk-pulse-dot 1.8s ease-in-out infinite;
}

/* Pricing card highlight */
.bk-card--featured {
  border-color: rgba(52,211,153,0.3) !important;
  box-shadow: 0 0 0 1px rgba(52,211,153,0.18),
              0 20px 60px -20px rgba(52,211,153,0.18),
              0 4px 24px rgba(0,0,0,0.32);
  position: relative;
}
.bk-card--featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -10px; right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3DDBA3, #10B981);
  color: #052e21;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'Geist Mono', monospace;
}

/* FAQ — leverage native details/summary */
.bk-faq details {
  border-bottom: 1px solid var(--bk-border);
  padding: 20px 0;
}
.bk-faq summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.008em;
  list-style: none;
}
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after {
  content: '+';
  float: right;
  font-size: 20px;
  font-weight: 400;
  color: var(--bk-fg-dim);
  transition: transform 200ms ease;
}
.bk-faq details[open] summary::after { content: '−'; }
.bk-faq details p {
  margin: 12px 0 0;
  color: var(--bk-fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 2px solid var(--bk-bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* WP-specific overrides */
.wp-block-group { color: inherit; }
.wp-block-heading { letter-spacing: -0.025em; }
a { color: var(--bk-emerald); text-decoration: none; }
a:hover { color: #6EE7B7; }
