/* ==========================================================================
   ENGELSIZ DÜNYA - MODERN DESIGN SYSTEM & ACCESSIBILITY TOKENS
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-scale: 1;

  /* Light Theme (Default SaaS Clean) */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-highlight: #CBD5E1;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;

  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;
  --accent-rose: #E11D48;
  --accent-rose-light: #FFF1F2;
  --accent-amber: #D97706;
  --accent-amber-light: #FFFBEB;
  --accent-indigo: #6366F1;
  --accent-indigo-light: #EEF2FF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ==========================================================================
   DARK THEME (Deep Slate)
   ========================================================================== */
html[data-theme="dark"] {
  --bg-page: #0F172A;
  --bg-surface: #1E293B;
  --bg-surface-elevated: #334155;
  --bg-card: #1E293B;
  --border-color: #334155;
  --border-highlight: #475569;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;

  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-light: rgba(59, 130, 246, 0.15);

  --accent-emerald: #10B981;
  --accent-emerald-light: rgba(16, 185, 129, 0.15);
  --accent-rose: #F43F5E;
  --accent-rose-light: rgba(244, 63, 94, 0.15);
  --accent-amber: #F59E0B;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  --accent-indigo: #818CF8;
  --accent-indigo-light: rgba(129, 140, 248, 0.15);

  --shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   HIGH CONTRAST THEME (Yellow on Black - WCAG AAA Low Vision)
   ========================================================================== */
html[data-contrast="high"] {
  --bg-page: #000000 !important;
  --bg-surface: #121212 !important;
  --bg-surface-elevated: #1E1E1E !important;
  --bg-card: #000000 !important;
  --border-color: #FFFF00 !important;
  --border-highlight: #FFFF00 !important;

  --text-main: #FFFF00 !important;
  --text-muted: #FFFFFF !important;
  --text-inverse: #000000 !important;

  --primary: #FFFF00 !important;
  --primary-hover: #FFFFAA !important;
  --primary-light: #222200 !important;

  --accent-emerald: #00FF66 !important;
  --accent-emerald-light: #002200 !important;
  --accent-rose: #FF3366 !important;
  --accent-rose-light: #220011 !important;
  --accent-amber: #FFFF00 !important;
  --accent-amber-light: #222200 !important;
  --accent-indigo: #00EEFF !important;

  --shadow-sm: none !important;
  --shadow-md: none !important;
  --shadow-lg: none !important;
  --shadow-xl: none !important;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  font-size: calc(16px * var(--font-scale, 1));
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* ==========================================================================
   ACCESSIBILITY BAR (Sticky Header)
   ========================================================================== */
.accessibility-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 1050;
  backdrop-filter: blur(10px);
}

.accessibility-bar .btn-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accessibility-bar .btn-access:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.accessibility-bar .badge-live {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  border: 1px solid var(--accent-emerald);
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.main-navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 39px;
  z-index: 1040;
  box-shadow: var(--shadow-sm);
}

.navbar-brand-custom {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.navbar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-link-custom {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link-custom i {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

.nav-link-custom span {
  display: inline-block;
  white-space: nowrap;
}

.nav-link-custom:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link-custom.active {
  color: var(--primary);
  font-weight: 800;
}

.btn-sos {
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: white !important;
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-sos:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 60px 0 40px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ==========================================================================
   INTERACTIVE LIVE SPEECH-TO-TEXT WIDGET
   ========================================================================== */
.stt-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.stt-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-emerald), var(--accent-indigo));
}

.mic-pulse-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
  color: white;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.mic-pulse-btn.listening {
  background: linear-gradient(135deg, var(--accent-rose), #BE123C);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(225, 29, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.stt-display-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 140px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   FEATURE CARDS & GRID
   ========================================================================== */
.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-highlight);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==========================================================================
   LIVE SALARY TRACKER (Evde Bakım Maaşı Yatan İller)
   ========================================================================== */
.salary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.province-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
}

.province-chip.paid {
  border-color: var(--accent-emerald);
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-badge.success {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
}

.status-badge.pending {
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
}

/* ==========================================================================
   FAYDALI LINKLER & REHBER
   ========================================================================== */
.link-catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.link-catalog-item:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateX(4px);
  color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-custom {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 25px;
  margin-top: 80px;
}

.footer-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-custom a:hover {
  color: var(--primary);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-sidebar {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  min-height: calc(100vh - 80px);
  padding: 24px 16px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.stat-metric-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* ==========================================================================
   GOOGLE PLAY & APP STORE DOWNLOAD BADGE BUTTONS
   ========================================================================== */
.store-badge-btn {
  background: #0F172A;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-radius: 12px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.store-badge-btn:hover {
  background: #1E293B;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
}

.store-badge-btn.store-google-play:hover {
  border-color: #10B981;
}

.store-badge-btn.store-app-store:hover {
  border-color: #38BDF8;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge-micro {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.85;
  font-weight: 600;
}

.store-badge-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}