/* ============================================================
   Kullanıcı Paneli & Auth Sayfaları
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f1f3f5;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef1f5;
  --border:    #e5e7eb;
  --border-2:  rgba(29, 53, 87, .22);
  --text:      #1f2937;
  --text-2:    #6b7280;
  --text-3:    #9ca3af;
  --brand:     #1d3557;
  --brand-2:   #2d4a73;
  --brand-3:   #16273f;
  --brand-glow: rgba(29, 53, 87, .22);
  --success:   #16a34a;
  --danger:    #dc2626;
  --warning:   #d97706;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --t:         .25s ease;
  --font:      'Arial Rounded MT Bold', 'Arial Rounded MT', 'Helvetica Rounded', 'Nunito', Arial, sans-serif;
}

html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: #1d3557; color: #fff; }


/* ─── SPLIT AUTH LAYOUT (login/register) ─── */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #ffffff;
}

/* LEFT — Brand side (lacivert) */
.auth-left {
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 0, 0, .22), transparent 60%),
    linear-gradient(135deg, #244e80 0%, #15263f 100%);
  color: #eaf1f9;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: 12%; right: -15%;
  width: 720px; height: 720px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  top: 25%; right: 5%;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .05);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.auth-brand-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #3d6aa6, #1d3557);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(29, 53, 87, .5);
}
.auth-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}
.auth-brand-name .accent {
  color: #9db8e0;
  font-weight: 600;
}

.auth-left-body {
  position: relative;
  z-index: 2;
  max-width: 480px;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #eaf1f9;
  margin-bottom: 28px;
}
.auth-eyebrow svg { color: #a9c5e8; }

.auth-heading {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 18px;
  color: #ffffff;
}
.auth-heading .accent {
  background: linear-gradient(135deg, #8fb6e8, #d6e6f8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-desc {
  font-size: 1rem;
  color: #bccee0;
  line-height: 1.65;
  margin-bottom: 38px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.auth-feature-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce8f6;
}
.auth-feature-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffffff;
}
.auth-feature-text span {
  font-size: .82rem;
  color: #9fb4cf;
}

.auth-left-foot {
  font-size: .8rem;
  color: #8ba2bf;
  position: relative;
  z-index: 2;
}


/* RIGHT — Form side (açık) */
.auth-right {
  background: #ffffff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}
.auth-back-link {
  position: absolute;
  top: 30px; left: 50px;
  font-size: .88rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--t);
}
.auth-back-link:hover { color: #1d3557; transform: translateX(-2px); }

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.auth-form-heading {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: #1f2937;
}
.auth-form-sub {
  font-size: .92rem;
  color: #6b7280;
  margin-bottom: 26px;
}

.auth-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: .85rem;
  border: 1px solid;
}
.auth-alert-warning {
  background: rgba(245, 158, 11, .10);
  border-color: rgba(245, 158, 11, .35);
  color: #b45309;
}
.auth-alert-error {
  background: rgba(220, 38, 38, .07);
  border-color: rgba(220, 38, 38, .28);
  color: #dc2626;
}
.auth-alert-success {
  background: rgba(22, 163, 74, .08);
  border-color: rgba(22, 163, 74, .30);
  color: #15803d;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert a { font-weight: 700; text-decoration: underline; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
}
.auth-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  color: #1f2937;
  font-size: .92rem;
  transition: var(--t);
}
.auth-input-wrap input:focus {
  outline: none;
  border-color: #1d3557;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 53, 87, .10);
}
.auth-input-wrap input::placeholder { color: #9ca3af; }

.auth-pass-toggle {
  position: absolute;
  right: 12px;
  color: #9ca3af;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-pass-toggle:hover { color: #1d3557; }

.auth-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #234e80, #1d3557);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(29, 53, 87, .28);
  transition: var(--t);
  margin-top: 6px;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(29, 53, 87, .38);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: #9ca3af;
  font-size: .78rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-meta {
  text-align: center;
  font-size: .88rem;
  color: #6b7280;
}
.auth-meta a {
  color: #1d3557;
  font-weight: 700;
}
.auth-meta a:hover { color: #16273f; text-decoration: underline; }
.auth-meta p { margin: 4px 0; }

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 18px;
  font-size: .85rem;
  color: #6b7280;
  cursor: pointer;
}
.auth-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #1d3557;
  flex-shrink: 0;
}
.auth-checkbox a { color: #1d3557; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { padding: 30px 24px; min-height: auto; order: 2; }
  .auth-left-body .auth-features { display: none; }
  .auth-right { padding: 70px 24px 30px; order: 1; }
  .auth-back-link { left: 24px; top: 24px; }
}


/* ═══════════════════════════════════════════════════════════════
   KULLANICI PANELİ
═══════════════════════════════════════════════════════════════ */
.uye-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.uye-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(15, 22, 34, .02), 4px 0 24px rgba(15, 22, 34, .03);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.uye-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.uye-sidebar-logo .auth-brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
}

.uye-user-box {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.uye-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.uye-user-name {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 2px;
}
.uye-user-email {
  font-size: .78rem;
  color: var(--text-3);
  word-break: break-all;
}

.uye-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.uye-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--t);
}
.uye-nav-link:hover {
  color: var(--text);
  background: rgba(29, 53, 87, .055);
}
.uye-nav-link.active {
  background: rgba(29, 53, 87, .09);
  border-color: var(--border-2);
  color: var(--brand);
  font-weight: 700;
}
.uye-nav-link svg { flex-shrink: 0; opacity: .85; }
.uye-nav-link.active svg { opacity: 1; }

.uye-sidebar-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uye-sidebar-bottom .uye-nav-link {
  padding: 9px 14px;
  font-size: .84rem;
  color: var(--text-3);
}

.uye-main {
  display: flex;
  flex-direction: column;
}
.uye-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: 0 1px 0 rgba(15, 22, 34, .02), 0 6px 20px rgba(15, 22, 34, .03);
  position: sticky;
  top: 0;
  z-index: 10;
}
.uye-topbar h1 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.uye-content {
  padding: 32px 40px;
  max-width: none;
  width: 100%;
}

.uye-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15, 22, 34, .04), 0 10px 30px rgba(15, 22, 34, .04);
  padding: 28px;
  margin-bottom: 20px;
}
.uye-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.uye-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.uye-card-desc {
  font-size: .85rem;
  color: var(--text-3);
}

.uye-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.uye-stat {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15, 22, 34, .04), 0 8px 24px rgba(15, 22, 34, .035);
  position: relative;
}
.uye-stat-icon {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(29, 53, 87, .09);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.uye-stat-label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.uye-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.uye-stat-sub {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 4px;
}

.uye-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.uye-form-group { margin-bottom: 16px; }
.uye-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.uye-form-group input,
.uye-form-group textarea,
.uye-form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .92rem;
  transition: var(--t);
}
.uye-form-group input:focus,
.uye-form-group textarea:focus,
.uye-form-group select:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 53, 87, .10);
}
.uye-form-group textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--font);
}
.uye-form-help { font-size: .76rem; color: var(--text-3); margin-top: 6px; }

.uye-btn-primary,
.uye-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--t);
  border: 1px solid transparent;
}
.uye-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.uye-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px var(--brand-glow);
}
.uye-btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.uye-btn-secondary:hover {
  background: #eef1f5;
  border-color: #d1d5db;
}

.uye-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.uye-table th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.uye-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.uye-table tbody tr:last-child td { border-bottom: none; }
.uye-table tbody tr:hover { background: rgba(29, 53, 87, .03); }

.uye-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid;
}
.uye-status-warning {
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .35);
  color: #b45309;
}
.uye-status-info {
  background: rgba(29, 53, 87, .09);
  border-color: var(--border-2);
  color: var(--brand);
}
.uye-status-success {
  background: rgba(22, 163, 74, .12);
  border-color: rgba(22, 163, 74, .35);
  color: #15803d;
}
.uye-status-danger {
  background: rgba(220, 38, 38, .10);
  border-color: rgba(220, 38, 38, .32);
  color: #dc2626;
}
.uye-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.uye-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-3);
}
.uye-empty svg {
  margin: 0 auto 18px;
  opacity: .5;
}
.uye-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.uye-empty p { font-size: .9rem; margin-bottom: 20px; }

@media (max-width: 900px) {
  .uye-body { grid-template-columns: 1fr; display: block; }
  .uye-main { min-width: 0; }
  .uye-sidebar {
    position: fixed;
    top: auto;              /* KRİTİK: masaüstündeki top:0 sıfırlanmazsa bottom:0 ile tüm ekranı kaplar */
    bottom: 0;
    left: 0; right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 5px 4px;
    overflow: visible;
    border-right: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(15, 22, 34, .08);
    z-index: 50;
  }
  .uye-sidebar-logo, .uye-user-box, .uye-sidebar-bottom { display: none; }
  .uye-sidebar-nav {
    flex-direction: row;
    flex: 1;
    width: 100%;
    gap: 2px;
    justify-content: space-around;
  }
  .uye-nav-link {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 3px;
    border: 0;
    border-radius: 10px;
    font-size: .6rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
  }
  .uye-nav-link svg { width: 20px; height: 20px; }
  .uye-nav-link.active { background: rgba(29, 53, 87, .09); }
  .uye-content { padding: 20px 14px 84px; }
  .uye-topbar { padding: 15px 16px; }
  .uye-topbar h1 { font-size: 1.15rem; }
  .uye-form-row { grid-template-columns: 1fr; }
}

/* ─── MOBİL DOKUNMATİK & FORM SERTLEŞTİRME ─── */
@media (max-width: 576px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="url"], input[type="search"],
  input[type="tel"], select, textarea {
    font-size: 16px; /* iOS otomatik zoom engeli */
    min-height: 44px;
  }
  textarea { min-height: 110px; }
  button, .btn-primary, .btn-secondary, [role="button"] { min-height: 44px; }
  .uye-content { padding: 18px 12px 96px; }
  .uye-topbar { padding: 14px 16px; }
}
