/* ==========================================================================
   MY KARMAYOGA — MASTER DESIGN SYSTEM (DS 2026/2027)
   Domain: MYKARMAYOGA.COM
   Tagline: Your Path. Your Action. Your Growth.
   Aesthetics: Calm, Purposeful, Intelligent, Global, High-Contrast Premium
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Core Palette */
  --brand-primary: #3b82f6;          /* Karmayoga Blue */
  --brand-primary-hover: #2563eb;
  --brand-primary-glow: rgba(59, 130, 246, 0.25);
  
  --brand-secondary: #10b981;        /* Action Emerald */
  --brand-secondary-hover: #059669;
  --brand-secondary-glow: rgba(16, 185, 129, 0.25);
  
  --brand-accent: #f59e0b;           /* Focus Amber */
  --brand-accent-glow: rgba(245, 158, 11, 0.25);

  --brand-purple: #8b5cf6;           /* Reflection Purple */
  --brand-rose: #f43f5e;             /* Life Vitality */

  /* Neutral Dark Mode System */
  --bg-app: #080c14;
  --bg-header: rgba(13, 19, 31, 0.85);
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-elevated: #1e293b;
  --bg-subtle: #0f172a;
  --bg-input: #1b2436;

  /* Typography & Text Tokens */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-brand: #ffffff;

  /* Border Tokens */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-focus: var(--brand-primary);

  /* Status Colors */
  --status-verified: #10b981;
  --status-verified-bg: rgba(16, 185, 129, 0.12);
  --status-pending: #f59e0b;
  --status-pending-bg: rgba(245, 158, 11, 0.12);
  --status-expired: #ef4444;
  --status-expired-bg: rgba(239, 68, 68, 0.12);

  /* Layout & Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px -5px var(--brand-primary-glow);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Override Class */
[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-subtle: #edf2f7;
  --bg-input: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.16);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
}

/* --------------------------------------------------------------------------
   3. HEADER & MASTER NAVIGATION BAR
   -------------------------------------------------------------------------- */
.mky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.mky-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mky-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.mky-brand-logo {
  height: 34px;
  width: auto;
}

.mky-brand-text {
  display: flex;
  flex-direction: column;
}

.mky-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mky-brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Primary Ecosystem Navigation Tabs */
.mky-primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mky-nav-item {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mky-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.mky-nav-item.active {
  color: var(--text-on-brand);
  background: var(--brand-primary);
  box-shadow: 0 2px 8px var(--brand-primary-glow);
}

/* Nav Controls Right */
.mky-header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mky-cmd-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mky-cmd-btn:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.mky-kbd-shortcut {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.mky-action-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-secondary), #059669);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--brand-secondary-glow);
  transition: all var(--transition-normal);
}

.mky-action-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-secondary-glow);
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.mky-main-layout {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mky-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.mky-page-title-group h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mky-page-title-group p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.mky-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mky-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.mky-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .mky-grid-3, .mky-grid-4, .mky-grid-2-1 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   5. CARDS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.mky-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.mky-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mky-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mky-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mky-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Ecosystem Pill / Badges */
.mky-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mky-badge-verified {
  background: var(--status-verified-bg);
  color: var(--status-verified);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mky-badge-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mky-badge-brand {
  background: rgba(59, 130, 246, 0.12);
  color: var(--brand-primary);
  border: 1px solid var(--border-brand);
}

/* Skill Pipeline Tags */
.mky-skill-pipeline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mky-skill-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mky-skill-state-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mky-state-claimed { background: #94a3b8; }
.mky-state-learned { background: #38bdf8; }
.mky-state-practiced { background: #a855f7; }
.mky-state-demonstrated { background: #f59e0b; }
.mky-state-verified { background: #10b981; }

/* --------------------------------------------------------------------------
   6. CAREER PASSPORT & OPPORTUNITY WIDGETS
   -------------------------------------------------------------------------- */
.mky-passport-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.mky-passport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.mky-passport-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-primary);
}

.mky-passport-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mky-avatar-lg {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mky-passport-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.mky-stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mky-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. MODAL & COMMAND PALETTE (Ctrl+K)
   -------------------------------------------------------------------------- */
.mky-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mky-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mky-modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 620px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px);
  transition: transform var(--transition-smooth);
}

.mky-modal-backdrop.active .mky-modal-container {
  transform: translateY(0);
}

.mky-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mky-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.mky-close-btn:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.mky-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.mky-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.mky-footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.mky-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mky-footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.mky-footer-links a:hover {
  color: var(--brand-primary);
}

.mky-footer-bottom {
  max-width: 1440px;
  margin: 2rem auto 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
