/* ================================================================
   YasoQR - main.css
   Genel stiller: landing, login, register sayfaları
   ================================================================ */

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

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:       #0A0F1E;
  --bg-secondary:     #111827;
  --bg-card:          #1F2937;
  --bg-card-hover:    #263243;
  --accent:           #7C3AED;
  --accent-light:     #A855F7;
  --accent-pink:      #EC4899;
  --gradient:         linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --text-primary:     #F9FAFB;
  --text-secondary:   #9CA3AF;
  --text-muted:       #6B7280;
  --border:           rgba(124, 58, 237, 0.15);
  --border-light:     rgba(255,255,255,0.08);
  --success:          #10B981;
  --danger:           #EF4444;
  --warning:          #F59E0B;
  --radius:           12px;
  --radius-lg:        20px;
  --shadow:           0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:      0 0 40px rgba(124,58,237,0.25);
}

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ─── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Navbar (Web) ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
}
.navbar-logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
}
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s;
}
.navbar-links a:hover { color: var(--text-primary); background: var(--border-light); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }
.btn-secondary {
  background: var(--border-light); color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-card); }
.btn-outline {
  background: transparent; color: var(--accent-light);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(124,58,237,0.1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ─── Form Elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  font-size: 14px; font-family: inherit;
  transition: all 0.2s; outline: none;
}
.form-control:focus {
  border-color: var(--accent); background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── Alert / Flash Messages ──────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }
.alert-danger  { background: rgba(239,68,68,0.15);  color: #F87171; border: 1px solid rgba(239,68,68,0.3); }
.alert-warning { background: rgba(245,158,11,0.15); color: #FBB440; border: 1px solid rgba(245,158,11,0.3); }
.alert-info    { background: rgba(124,58,237,0.15); color: #A78BFA; border: 1px solid rgba(124,58,237,0.3); }

/* ─── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-success { background: rgba(16,185,129,0.15); color: #34D399; }
.badge-danger  { background: rgba(239,68,68,0.15);  color: #F87171; }
.badge-warning { background: rgba(245,158,11,0.15); color: #FBB440; }
.badge-info    { background: rgba(124,58,237,0.15); color: #A78BFA; }
.badge-secondary { background: rgba(156,163,175,0.15); color: #9CA3AF; }

/* ─── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
}
.card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ─── Auth Pages (Login / Register) ──────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute; bottom: -200px; left: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.auth-box {
  width: 100%; max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  justify-content: center;
}
.auth-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-text { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.auth-subtitle {
  text-align: center; color: var(--text-secondary);
  font-size: 14px; margin-bottom: 32px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent-light); font-weight: 600; }
.auth-footer a:hover { color: var(--accent); }

/* ─── Landing Page ────────────────────────────────────────────── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-light); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800;
  line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px;
}
.hero p {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.features {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(124,58,237,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--accent-light);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted); font-size: 14px;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-box { padding: 28px 20px; }
  .hero { padding: 120px 0 60px; }
}
