/* ==========================================================================
   RIFID SOFTWARE LLC - THEMES CSS
   Theme-specific color palettes and styling
   ========================================================================== */

/* ==========================================================================
   CORPORATE THEME (rifid.co)
   Calm governance, minimal, restrained
   ========================================================================== */

[data-theme="corporate"] {
  /* Corporate uses root variables (neutral palette) */
  --theme-primary: var(--accent-corporate);
  --theme-bg: var(--warm-white);
  --theme-bg-elevated: var(--warm-white-200);
  --theme-text: var(--text-primary);
}

[data-theme="corporate"] .nav {
  background-color: var(--warm-white);
}

[data-theme="corporate"] .btn-primary {
  background-color: var(--accent-corporate);
}

[data-theme="corporate"] .btn-primary:hover:not(:disabled) {
  background-color: #6a7059;
}

/* Corporate should feel structured and minimal */
[data-theme="corporate"] .card {
  background-color: white;
  border: 1px solid var(--border-light);
}

[data-theme="corporate"] .card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

[data-theme="corporate"] h1,
[data-theme="corporate"] h2,
[data-theme="corporate"] h3 {
  letter-spacing: -0.02em;
}

/* ==========================================================================
   RIFID ECOSYSTEM THEME (rifid.rifid.co)
   Held space, calm, reflective - sage green accent
   ========================================================================== */

[data-theme="rifid"] {
  --theme-primary: #9fa892;      /* Sage green */
  --theme-primary-dark: #8a9479;
  --theme-bg: #fdfcfb;
  --theme-bg-elevated: #f7f6f4;
  --theme-bg-soft: #f2f1ee;
  --theme-text: #2b2b2b;
  --theme-text-soft: #5a5a5a;
}

[data-theme="rifid"] body {
  background-color: var(--theme-bg);
}

[data-theme="rifid"] .nav {
  background-color: var(--theme-bg);
  border-bottom: 1px solid #e8e7e5;
}

[data-theme="rifid"] .btn-primary {
  background-color: var(--theme-primary);
  color: white;
}

[data-theme="rifid"] .btn-primary:hover:not(:disabled) {
  background-color: var(--theme-primary-dark);
}

[data-theme="rifid"] a {
  color: var(--theme-primary);
}

[data-theme="rifid"] a:hover {
  color: var(--theme-primary-dark);
}

[data-theme="rifid"] .card {
  background-color: white;
  border: 1px solid #e8e7e5;
}

[data-theme="rifid"] .card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(159, 168, 146, 0.1);
}

[data-theme="rifid"] h1,
[data-theme="rifid"] h2,
[data-theme="rifid"] h3 {
  color: var(--theme-text);
  letter-spacing: -0.01em;
}

/* Kit section specific to Rifid */
[data-theme="rifid"] .kit-section {
  background-color: var(--theme-bg-soft);
}

[data-theme="rifid"] .kit-container {
  background-color: white;
  border: 1px solid #e8e7e5;
}

[data-theme="rifid"] .expectation-block {
  background-color: var(--theme-bg-elevated);
}

[data-theme="rifid"] .expectation-block li:before {
  color: var(--theme-primary);
}

[data-theme="rifid"] input:focus,
[data-theme="rifid"] textarea:focus,
[data-theme="rifid"] select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(159, 168, 146, 0.1);
}

/* Rifid should feel calm and spacious */
[data-theme="rifid"] .section {
  padding: 5rem 0;
}

[data-theme="rifid"] .hero {
  padding: 4rem 0;
}

/* ==========================================================================
   ASCELYR ECOSYSTEM THEME (ascelyr.rifid.co)
   Mastery in motion, disciplined, premium - NO neon, NO arcade
   ========================================================================== */

[data-theme="ascelyr"] {
  --theme-primary: #4a5568;      /* Steel blue-gray */
  --theme-primary-light: #5d6a7f;
  --theme-accent: #3182ce;       /* Premium blue (not neon) */
  --theme-bg: #ffffff;
  --theme-bg-elevated: #f7fafc;
  --theme-bg-dark: #2d3748;
  --theme-text: #1a202c;
  --theme-text-soft: #4a5568;
  --theme-border: #e2e8f0;
}

[data-theme="ascelyr"] body {
  background-color: var(--theme-bg);
}

[data-theme="ascelyr"] .nav {
  background-color: var(--theme-bg);
  border-bottom: 1px solid var(--theme-border);
}

[data-theme="ascelyr"] .btn-primary {
  background-color: var(--theme-primary);
  color: white;
  font-weight: var(--font-semibold);
  letter-spacing: 0.02em;
}

[data-theme="ascelyr"] .btn-primary:hover:not(:disabled) {
  background-color: var(--theme-bg-dark);
}

[data-theme="ascelyr"] a {
  color: var(--theme-accent);
  font-weight: var(--font-medium);
}

[data-theme="ascelyr"] a:hover {
  color: var(--theme-primary);
}

[data-theme="ascelyr"] .card {
  background-color: white;
  border: 1px solid var(--theme-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="ascelyr"] .card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.15);
  transform: translateY(-2px);
}

[data-theme="ascelyr"] h1,
[data-theme="ascelyr"] h2,
[data-theme="ascelyr"] h3 {
  color: var(--theme-text);
  font-weight: var(--font-bold);
  letter-spacing: -0.03em;
}

/* Precision geometry - clean lines */
[data-theme="ascelyr"] .hero {
  background: linear-gradient(180deg, var(--theme-bg) 0%, var(--theme-bg-elevated) 100%);
}

[data-theme="ascelyr"] .emphasis-box {
  background-color: var(--theme-bg-elevated);
  border-left: 3px solid var(--theme-primary);
}

/* Premium hierarchy - structured spacing */
[data-theme="ascelyr"] .section {
  padding: 4.5rem 0;
}

[data-theme="ascelyr"] input:focus,
[data-theme="ascelyr"] textarea:focus,
[data-theme="ascelyr"] select:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Dashboard-like metric display */
[data-theme="ascelyr"] .metric-card {
  background-color: white;
  border: 1px solid var(--theme-border);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

[data-theme="ascelyr"] .metric-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--theme-primary);
  line-height: 1;
}

/* ==========================================================================
   VORYNTH ECOSYSTEM THEME (vorynth.rifid.co)
   War room, rigorous, impartial, dense - NO XP, NO fun
   ========================================================================== */

[data-theme="vorynth"] {
  --theme-primary: #2d3748;      /* Dark slate */
  --theme-primary-light: #4a5568;
  --theme-accent: #c53030;       /* Deep red (for warnings/consequences) */
  --theme-bg: #1a202c;
  --theme-bg-elevated: #2d3748;
  --theme-bg-light: #f7fafc;
  --theme-text: #1a202c;
  --theme-text-on-dark: #e2e8f0;
  --theme-text-soft: #4a5568;
  --theme-border: #cbd5e0;
}

[data-theme="vorynth"] body {
  background-color: var(--theme-bg-light);
}

[data-theme="vorynth"] .nav {
  background-color: var(--theme-bg);
  border-bottom: 1px solid var(--theme-primary);
}

[data-theme="vorynth"] .nav-link {
  color: var(--theme-text-on-dark);
}

[data-theme="vorynth"] .nav-link:hover {
  color: white;
}

[data-theme="vorynth"] .btn-primary {
  background-color: var(--theme-primary);
  color: white;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
}

[data-theme="vorynth"] .btn-primary:hover:not(:disabled) {
  background-color: var(--theme-bg);
}

[data-theme="vorynth"] a {
  color: var(--theme-primary);
  font-weight: var(--font-medium);
}

[data-theme="vorynth"] a:hover {
  color: var(--theme-accent);
}

[data-theme="vorynth"] .card {
  background-color: white;
  border: 2px solid var(--theme-border);
}

[data-theme="vorynth"] .card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 1px var(--theme-primary);
}

[data-theme="vorynth"] h1,
[data-theme="vorynth"] h2,
[data-theme="vorynth"] h3 {
  color: var(--theme-text);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* War room aesthetic - information density */
[data-theme="vorynth"] .hero {
  background-color: var(--theme-bg);
  color: var(--theme-text-on-dark);
}

[data-theme="vorynth"] .hero h1 {
  color: white;
}

[data-theme="vorynth"] .hero-subtitle {
  color: var(--theme-text-on-dark);
}

[data-theme="vorynth"] .section {
  padding: 3.5rem 0;
}

/* Decision laboratory - consequence emphasis */
[data-theme="vorynth"] .warning-box {
  background-color: rgba(197, 48, 48, 0.05);
  border: 2px solid var(--theme-accent);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

[data-theme="vorynth"] .warning-box h3 {
  color: var(--theme-accent);
  margin-bottom: var(--space-sm);
}

/* Reputation metrics display */
[data-theme="vorynth"] .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

[data-theme="vorynth"] .metric-item {
  background-color: var(--theme-bg-elevated);
  color: var(--theme-text-on-dark);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--theme-accent);
}

[data-theme="vorynth"] .metric-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a0aec0;
  margin-bottom: var(--space-xs);
}

[data-theme="vorynth"] .metric-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: white;
  font-family: 'Courier New', monospace;
}

/* Dense, rigorous typography */
[data-theme="vorynth"] p {
  line-height: var(--leading-snug);
}

[data-theme="vorynth"] input:focus,
[data-theme="vorynth"] textarea:focus,
[data-theme="vorynth"] select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(45, 55, 72, 0.2);
}

/* ==========================================================================
   RESPONSIVE THEME ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  /* Ascelyr - maintain precision on mobile */
  [data-theme="ascelyr"] .card-grid {
    gap: var(--space-md);
  }
  
  /* Vorynth - maintain density on mobile */
  [data-theme="vorynth"] .metric-grid {
    grid-template-columns: 1fr;
  }
  
  [data-theme="vorynth"] h1,
  [data-theme="vorynth"] h2,
  [data-theme="vorynth"] h3 {
    font-size: calc(var(--text-3xl) * 0.9);
  }
}
