/* =========================================
   ПЕРЕМЕННЫЕ ТЕМ
   ========================================= */

/* Темная тема (осталась без изменений) */
:root, [data-theme="dark"] {
  --bg: #1C1C1E;
  --text: #FFFFFF;
  --hint: #8E8E93;
  --accent: #FF8BA7;
  --accent-rgb: 255, 139, 167;

  --glass-bg: rgba(30, 30, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --input-bg: rgba(0, 0, 0, 0.2);

  --blob-1: #FF8BA7;
  --blob-2: #8E8E93;
}

/* Светлая тема (Нежная, розовый кварц, стеклянная) */
[data-theme="light"] {
  /* Мягкий, приятный глазу розовый кварц (вместо режущего белого) */
  --bg: #F9E8EB;
  /* Теплый темно-серый текст для комфортного чтения */
  --text: #4A3B40;
  --hint: #9E8A8E;
  --accent: #E57391; /* Насыщенный розовый акцент */
  --accent-rgb: 229, 115, 145;

  /* Стекло теперь имеет легкий розовый оттенок */
  --glass-bg: rgba(255, 245, 247, 0.7);
  --glass-border: rgba(229, 115, 145, 0.2);
  --glass-shadow: 0 12px 40px rgba(200, 120, 140, 0.15);
  --input-bg: rgba(255, 255, 255, 0.85);

  /* Фоновые пятна (нежно-розовый и персиковый) */
  --blob-1: #FFC0CB;
  --blob-2: #FFDAB9;
}

/* =========================================
   БАЗОВЫЕ СТИЛИ
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  /* Плавный переход для всех цветов и теней при смене темы */
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Скрываем скроллбар для нативного вида */
::-webkit-scrollbar { display: none; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Фоновые пятна */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: float 15s infinite ease-in-out alternate;
}
.blob-1 { width: 300px; height: 300px; background: var(--blob-1); top: -50px; left: -100px; }
.blob-2 { width: 250px; height: 250px; background: var(--blob-2); bottom: 50px; right: -50px; animation-delay: -5s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

.app-container { padding: 20px 16px 120px; max-width: 600px; margin: 0 auto; }

/* =========================================
   ЭФФЕКТ СТЕКЛА
   ========================================= */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  /* Внутренняя подсветка для объема */
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-radius: 28px;
}

/* =========================================
   ШАПКА
   ========================================= */
.header { padding: 20px 24px; margin-bottom: 20px; animation: slideDown 0.6s ease; }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; color: var(--accent); }
.subtitle { font-size: 13px; color: var(--hint); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.theme-btn {
  background: var(--input-bg);
  border: none;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}
.theme-btn:active { transform: scale(0.9); }

/* =========================================
   КОНТЕНТ ВКЛАДОК
   ========================================= */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease forwards; }

/* Главная */
.welcome-card { padding: 30px 24px; text-align: center; }
.welcome-icon { font-size: 48px; margin-bottom: 16px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1)); }
.welcome-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.company-desc { font-size: 15px; color: var(--hint); line-height: 1.5; margin-bottom: 24px; }
.company-desc b { color: var(--text); }

.nav-hints { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-bottom: 30px; }
.hint-item {
  display: flex;
  gap: 14px;
  background: var(--input-bg);
  padding: 16px;
  border-radius: 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.hint-item.clickable { cursor: pointer; border: 1px solid transparent; }
.hint-item.clickable:active { transform: scale(0.97); border-color: var(--accent); }
.hint-icon { font-size: 24px; }
.hint-item b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.hint-item p { font-size: 13px; color: var(--hint); line-height: 1.4; }

/* Кнопки */
.action-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-primary, .btn-secondary {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--glass-border);
}
.btn-primary:active, .btn-secondary:active { transform: scale(0.96); }

/* =========================================
   ВАКАНСИЯ И ИНФО
   ========================================= */
.job-details, .info-content { padding: 24px; font-size: 15px; line-height: 1.6; color: var(--hint); margin-bottom: 16px; }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.job-header h2 { font-size: 22px; font-weight: 700; flex: 1; color: var(--text); }
.salary-badge {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  margin-left: 10px;
}
.job-desc { font-size: 15px; color: var(--hint); margin-bottom: 24px; }
.job-section h4, .info-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--text); }

.step-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.step { font-size: 14px; color: var(--hint); line-height: 1.5; background: var(--input-bg); padding: 16px; border-radius: 16px; }
.step b { color: var(--text); }

/* =========================================
   ФОРМА
   ========================================= */
.form-container { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; color: var(--hint); text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.status { margin-top: 16px; font-size: 14px; text-align: center; font-weight: 600; }
.status.success { color: #30D158; }
.status.error { color: #FF453A; }

/* =========================================
   НИЖНЕЕ МЕНЮ
   ========================================= */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  border-radius: 30px;
  z-index: 100;
  max-width: 568px;
  margin: 0 auto;
}
.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--hint);
  cursor: pointer;
  transition: 0.3s;
  padding: 8px 10px;
  border-radius: 16px;
}
.nav-item .icon { font-size: 22px; transition: 0.3s; opacity: 0.7; }
.nav-item .label { font-size: 10px; font-weight: 600; }
.nav-item.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }
.nav-item.active .icon { transform: scale(1.15); opacity: 1; }

/* =========================================
   АНИМАЦИИ
   ========================================= */
@keyframes flashHighlight {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); border-color: var(--accent); }
  50% { box-shadow: 0 0 20px 10px rgba(var(--accent-rgb), 0.3); border-color: var(--accent); }
  100% { box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15); border-color: var(--glass-border); }
}
.highlight-flash { animation: flashHighlight 1.5s ease-out; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Скрываем плашку Netlify */
iframe[src*="netlify"],
#netlify-badge,
div[style*="z-index: 2147483647"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}