/* ==========================================================================
   VEBENDE AKADEMİ - KURUMSAL YETKİNLİK ANALİZ PLATFORMU
   DESIGN SYSTEM & STYLES (Pure CSS Variables + Bootstrap 5 Harmony)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Executive Modern Dark/Light Theme System */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-surface: #1e293b;
  --bg-surface-elevated: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --brand-primary: #6366f1;
  --brand-primary-hover: #4f46e5;
  --brand-secondary: #0ea5e9;
  --brand-accent: #8b5cf6;
  --brand-success: #10b981;
  --brand-warning: #f59e0b;
  --brand-danger: #ef4444;
  --brand-info: #06b6d4;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);

  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-highlight: rgba(99, 102, 241, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);

  /* Typography */
  --font-primary: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing Variables */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Toggle */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.92);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-highlight: rgba(99, 102, 241, 0.4);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navbar */
.app-header {
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: background-color var(--transition-normal);
}

.navbar-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 2px;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.nav-link-custom {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--text-main);
  background-color: rgba(99, 102, 241, 0.12);
  border-left: 3px solid var(--brand-primary);
}

/* App Main Layout */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-color-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.glass-card-sm {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
}

/* PWA Install Banner */
.pwa-install-banner {
  background: var(--gradient-brand);
  color: #ffffff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chart Container */
.chart-container {
  width: 100%;
  min-height: 380px;
  position: relative;
}

.chart-container-sm {
  min-height: 260px;
}

/* Modern Data Table Customization */
.table-custom-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-custom {
  color: var(--text-main);
  background-color: transparent;
  margin-bottom: 0;
}

.table-custom th {
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-custom td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  background-color: transparent;
  color: var(--text-main);
}

.table-custom tbody tr {
  transition: background-color var(--transition-fast);
}

.table-custom tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Form Controls & Inputs */
.form-control-custom, .form-select-custom {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-custom:focus, .form-select-custom:focus {
  background-color: var(--bg-primary);
  color: var(--text-main);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

/* Custom Buttons */
.btn-brand {
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-brand:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-outline-custom:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text-main);
}

/* Path Badge & Skill Badges */
.badge-path {
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35em 0.75em;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-level {
  padding: 0.35em 0.75em;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-level-junior { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-level-mid { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-level-senior { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-level-lead { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Timeline Step for Roadmaps */
.roadmap-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px dashed var(--border-color);
}

.roadmap-step {
  position: relative;
  margin-bottom: 2rem;
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--brand-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.roadmap-step.completed::before {
  background: var(--brand-success);
  border-color: var(--brand-success);
}

/* Turnstile Widget Box */
.turnstile-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed var(--border-color-highlight);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer Styling */
.app-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
  .glass-card {
    padding: var(--space-md);
  }
  .chart-container {
    min-height: 300px;
  }
  .pwa-install-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
