/* ═══════════════════════════════════════════
   isson frontend × aki backend
   Mavi gradient tasarım — app.css
   ═══════════════════════════════════════════ */

@import url('./inter.css');

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1565C0;
}

/* ── APP WRAPPER ── */
.app {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   SPLASH (LOADING SCREEN)
───────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #1976D2 0%, #1565C0 40%, #0D47A1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashIn 0.8s ease forwards;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─────────────────────────────────────────
   SCREEN BASE
───────────────────────────────────────── */
.screen {
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   KARŞILAMA EKRANI (isson index.php)
   Mavi gradient + kategori + welcome center
   + beyaz bottom panel
   ═══════════════════════════════════════════ */
.welcome-screen {
  background: none;
}

/* Üst mavi bölüm — esnek */
.top-section {
  background: linear-gradient(160deg, #1976D2 0%, #1565C0 40%, #0D47A1 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* dekoratif daireler */
.top-section::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -80px; right: -80px;
}
.top-section::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: 80px; left: -60px;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 8px;
  position: relative;
  z-index: 2;
}

.topbar-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 6px;
  padding: 4px;
  border: none;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}
.topbar-lang:hover { opacity: 0.8; }

.topbar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.topbar-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}
.topbar-icon-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Kategori satırı ── */
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 4px 8px 14px;
  position: relative;
  z-index: 2;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  cursor: pointer;
}

.category-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s, transform 0.2s;
}
.category-circle:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.07);
}
.category-item.active .category-circle {
  border-color: #64B5F6;
  background: rgba(100,181,246,0.18);
  box-shadow: 0 0 0 3px rgba(100,181,246,0.35);
}

.category-label {
  font-size: 11px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}
.category-item.active .category-label { color: #64B5F6; }

.cat-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 20px;
  position: relative;
  z-index: 2;
}

/* ── Welcome Center ── */
.welcome-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 20px;
  position: relative;
  z-index: 2;
}

.welcome-center > * {
  opacity: 0;
  animation: fadeSlideUp 0.5s ease forwards;
}
.welcome-center > *:nth-child(1) { animation-delay: 0.1s; }
.welcome-center > *:nth-child(2) { animation-delay: 0.2s; }
.welcome-center > *:nth-child(3) { animation-delay: 0.3s; }
.welcome-center > *:nth-child(4) { animation-delay: 0.35s; }
.welcome-center > *:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avatar-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.welcome-title {
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  text-align: center;
}

.action-btns {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

.action-btn {
  flex: 1;
  padding: 17px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.action-btn:active { transform: scale(0.97); }

.btn-bireysel {
  background: linear-gradient(135deg, #42A5F5, #1E88E5);
  color: white;
  box-shadow: 0 4px 16px rgba(30,136,229,0.45);
}
.btn-ticari {
  background: linear-gradient(135deg, #26C6DA, #1E88E5);
  color: white;
  box-shadow: 0 4px 16px rgba(30,136,229,0.35);
}

.btn-musteri {
  width: 100%;
  padding: 17px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  margin-bottom: 14px;
  text-decoration: none;
}
.btn-musteri:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-musteri:active { transform: scale(0.97); }

.link-sifre {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}
.link-sifre:hover { color: white; }

/* ── Alt beyaz panel ── */
.bottom-panel {
  background: white;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.panel-mid {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.panel-mid-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s;
}
.panel-mid-item:hover { background: #f8f9ff; }
.panel-mid-item:first-child { border-right: 1px solid #f0f0f0; }

.panel-mid-icon { font-size: 22px; color: #1565C0; }
.panel-mid-label { font-size: 11px; font-weight: 600; color: #333; }
.panel-mid-sublabel { font-size: 11px; font-weight: 600; color: #E91E8C; }

.panel-nav {
  display: flex;
  align-items: center;
  padding: 10px 6px 24px;
}

.panel-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 0.15s;
}
.panel-nav-item:hover { background: #f0f4ff; }

.panel-nav-icon {
  width: 28px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}

.panel-nav-label {
  font-size: 10px;
  color: #555;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════
   GİRİŞ EKRANI (isson giris.php)
   ═══════════════════════════════════════════ */
.login-screen {
  background: linear-gradient(160deg, #1976D2 0%, #1565C0 40%, #0D47A1 100%);
}

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 8px;
  position: relative;
  flex-shrink: 0;
}

.back-btn {
  position: absolute;
  left: 8px;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  line-height: 1;
  text-decoration: none;
}

.login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.login-user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.login-user-name span {
  color: white;
  font-size: 18px;
  font-weight: 700;
}
.login-user-name .chevron {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 2px 6px;
}

.login-user-type {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}

.login-form-area { width: 100%; }

.login-err {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.login-input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 12px;
  padding: 18px 16px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  margin-bottom: 16px;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}
.login-input::placeholder { color: rgba(255,255,255,0.95); }
.login-input:focus {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
}

.login-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.login-link {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  background: none;
  border: none;
}
.login-link:hover { color: white; }

.login-btn {
  width: 100%;
  padding: 18px 0;
  background: rgba(0,0,0,0.22);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  -webkit-appearance: none;
  appearance: none;
}
.login-btn:hover { background: rgba(0,0,0,0.32); }

/* ═══════════════════════════════════════════
   FORM SAYFALAR (basvuru-tamamla)
   ═══════════════════════════════════════════ */
.form-screen {
  background: linear-gradient(160deg, #1976D2 0%, #1565C0 40%, #0D47A1 100%);
}

.form-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 8px;
  position: relative;
  flex-shrink: 0;
}

.form-content {
  flex: 1;
  padding: 20px 24px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.form-page-title {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-page-sub {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 20px;
}

.form-tc-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px 10px 0 0;
  padding: 12px 16px;
  color: white;
  font-size: 13px;
}
.form-tc-badge strong { font-size: 15px; font-weight: 700; }

.form-err {
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,100,100,0.3);
  color: white;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-tel-input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 12px;
  padding: 18px 16px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  margin: 16px 0 24px;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}
.form-tel-input::placeholder { color: rgba(255,255,255,0.7); }
.form-tel-input:focus {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
}

.form-devam-btn {
  width: 100%;
  padding: 18px 0;
  background: rgba(0,0,0,0.22);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  -webkit-appearance: none;
  appearance: none;
}
.form-devam-btn:hover { background: rgba(0,0,0,0.32); }

/* ═══════════════════════════════════════════
   BAŞARI SAYFASI (basarili-basvuru)
   ═══════════════════════════════════════════ */
.success-screen {
  background: linear-gradient(160deg, #1976D2 0%, #1565C0 40%, #0D47A1 100%);
  min-height: 100vh;
  min-height: 100svh;
}

.success-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 8px;
  flex-shrink: 0;
}

.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.check-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: popIn 0.6s ease;
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.check-icon { font-size: 38px; color: white; }

.success-title {
  color: white;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.2;
}

.success-sub {
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  text-align: center;
  line-height: 1.6;
  max-width: 340px;
}

.success-spacer { flex: 1; }

.success-bottom {
  padding: 20px 24px 32px;
  width: 100%;
  flex-shrink: 0;
}

.alt-icons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.alt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: white;
  text-align: center;
  cursor: pointer;
}

.alt-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alt-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ═══════════════════════════════════════════
   GEÇİŞ ANİMASYONLARI (transitions.js ile uyumlu)
   ═══════════════════════════════════════════ */
.app.is-transitioning .screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

@keyframes txEnterFwd {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes txExitFwd {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-12px) scale(1.012); }
}
@keyframes txEnterBk {
  from { opacity: 0; transform: translateY(-14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes txExitBk {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(18px) scale(0.985); }
}

.tx-enter-forward { animation: txEnterFwd 0.42s cubic-bezier(0.22,1,0.36,1) forwards; }
.tx-exit-forward  { animation: txExitFwd  0.36s cubic-bezier(0.4,0,0.2,1) forwards; }
.tx-enter-back    { animation: txEnterBk  0.42s cubic-bezier(0.22,1,0.36,1) forwards; }
.tx-exit-back     { animation: txExitBk   0.36s cubic-bezier(0.4,0,0.2,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .tx-enter-forward, .tx-exit-forward,
  .tx-enter-back, .tx-exit-back { animation: none; }
}
