/* ============================================
   ÖğrenciAnaliz - Ana CSS Dosyası
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --secondary: #FF6B6B;
  --accent: #4ECDC4;
  --bg: #0A0A1A;
  --bg-card: #12122A;
  --bg-card2: #1A1A35;
  --text: #E8E8F0;
  --text-muted: #9898B0;
  --border: rgba(108,99,255,0.2);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --gradient: linear-gradient(135deg, #6C63FF, #FF6B6B);
  --gradient2: linear-gradient(135deg, #4ECDC4, #6C63FF);
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* TYPOGRAPHY */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all 0.3s ease; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 20px rgba(108,99,255,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.6); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: linear-gradient(135deg, #FF6B6B, #ee0979); color: #fff; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,10,26,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { font-size: 22px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: flex; align-items: center; gap: 8px; }
.nav-logo i { -webkit-text-fill-color: #6C63FF; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 20px 60px; max-width: 1200px; margin: 0 auto; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: #a89cff; padding: 8px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 20px; }
.hero-desc { font-size: 18px; color: var(--text-muted); max-width: 500px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* HERO IMAGE */
.hero-image { flex: 1; position: relative; min-height: 400px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hero-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; max-width: 320px; box-shadow: var(--shadow); }
.hero-card:nth-child(2) { margin-left: auto; }
.hero-card:nth-child(3) { margin-left: 40px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #6C63FF, #4ECDC4); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.card-icon.ai { background: linear-gradient(135deg, #FF6B6B, #ffd93d); }
.card-icon.success { background: linear-gradient(135deg, #6bcb77, #4d96ff); }
.card-content h3 { font-size: 16px; margin-bottom: 4px; }
.card-content p { font-size: 14px; color: var(--text-muted); }
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 8px; }
.progress { height: 100%; border-radius: 3px; background: var(--gradient); }

/* FLOATING ANIMATION */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.floating { animation: float 3s ease-in-out infinite; }
.delay1 { animation-delay: 0.5s; }
.delay2 { animation-delay: 1s; }

/* FEATURES */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 18px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(108,99,255,0.2); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(108,99,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); line-height: 1.7; }

/* HOW IT WORKS */
.how-it-works { padding: 100px 0; background: var(--bg-card); }
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; text-align: center; max-width: 200px; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; margin: 0 auto 16px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--primary); }

/* PRICING */
.pricing { padding: 100px 0; }
.pricing-card { max-width: 420px; margin: 0 auto; background: var(--bg-card); border: 2px solid var(--primary); border-radius: 28px; padding: 48px; text-align: center; position: relative; overflow: hidden; }
.pricing-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(108,99,255,0.05) 0%, transparent 70%); }
.pricing-badge { background: var(--gradient); color: #fff; padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 24px; }
.pricing-icon { font-size: 40px; color: #ffd93d; margin-bottom: 16px; }
.pricing-card h3 { font-size: 24px; margin-bottom: 24px; }
.price { font-size: 56px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 32px; }
.currency { font-size: 28px; vertical-align: top; margin-top: 12px; display: inline-block; }
.period { font-size: 16px; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i { color: var(--accent); font-size: 16px; }

/* FOOTER */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-content { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { flex: 2; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; }
.footer-links { flex: 1; }
.footer-links h4 { margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 8px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* AUTH PAGES */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; background: radial-gradient(ellipse at top, rgba(108,99,255,0.1) 0%, transparent 60%); }
.auth-card { width: 100%; max-width: 460px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 28px; padding: 48px; }
.auth-card h2 { font-size: 28px; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 36px; }

/* FORM ELEMENTS */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); font-size: 16px; font-family: inherit; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.phone-input { display: flex; gap: 0; }
.phone-prefix { background: var(--bg-card2); border: 1.5px solid var(--border); border-right: none; border-radius: 12px 0 0 12px; padding: 14px 16px; color: var(--text-muted); font-size: 16px; white-space: nowrap; }
.phone-input input { border-radius: 0 12px 12px 0; }
.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.divider { text-align: center; color: var(--text-muted); margin: 24px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 15px; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* OTP */
.otp-container { display: flex; gap: 10px; justify-content: center; }
.otp-input { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; background: var(--bg); border: 2px solid var(--border); border-radius: 12px; color: var(--text); outline: none; transition: border-color 0.3s; }
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.otp-timer { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.otp-resend { background: none; border: none; color: var(--primary); cursor: pointer; font-weight: 600; font-size: 14px; }

/* DASHBOARD */
.dashboard { min-height: 100vh; background: var(--bg); padding-top: 70px; }
.dashboard-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; flex-wrap: gap; }
.welcome-text h2 { font-size: 28px; }
.welcome-text p { color: var(--text-muted); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media(max-width:768px){.dashboard-grid{grid-template-columns:1fr;}}

/* DASHBOARD CARDS */
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.dash-card h3 { font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.dash-card h3 i { color: var(--primary); }
.dash-card.full-width { grid-column: 1 / -1; }

/* AI CHAT */
.chat-window { height: 400px; overflow-y: auto; padding: 20px; background: var(--bg); border-radius: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 16px; }
.message { max-width: 80%; padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.6; }
.message.user { background: var(--gradient); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.message.ai { background: var(--bg-card2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border); }
.message.ai .ai-badge { display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.chat-input-area { display: flex; gap: 12px; }
.chat-input-area input { flex: 1; }
.chat-typing { display: flex; gap: 6px; align-items: center; padding: 14px 18px; background: var(--bg-card2); border-radius: 18px; border-bottom-left-radius: 4px; align-self: flex-start; }
.typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: typing 1.4s infinite; }
.typing-dot:nth-child(2){animation-delay:0.2s}
.typing-dot:nth-child(3){animation-delay:0.4s}
@keyframes typing{0%,100%{opacity:0.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}

/* EXAM ANALYSIS */
.exam-subjects { display: flex; flex-direction: column; gap: 16px; }
.subject-row { display: flex; align-items: center; gap: 16px; }
.subject-name { width: 120px; font-size: 14px; font-weight: 500; }
.subject-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.08); border-radius: 5px; overflow: hidden; }
.subject-fill { height: 100%; border-radius: 5px; transition: width 1s ease; }
.subject-score { width: 50px; text-align: right; font-size: 14px; font-weight: 600; }
.weak-badge { background: rgba(255,107,107,0.15); color: #FF6B6B; border: 1px solid rgba(255,107,107,0.3); padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.strong-badge { background: rgba(78,205,196,0.15); color: var(--accent); border: 1px solid rgba(78,205,196,0.3); padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }

/* STUDY PLAN */
.plan-days { display: flex; flex-direction: column; gap: 12px; }
.plan-day { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); }
.plan-day .day { width: 70px; font-size: 13px; font-weight: 600; color: var(--primary); }
.plan-day .topics { flex: 1; font-size: 14px; color: var(--text-muted); }
.plan-day .action a { font-size: 13px; color: var(--accent); font-weight: 500; }

/* ALERTS */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(107,203,119,0.1); border: 1px solid rgba(107,203,119,0.3); color: #6bcb77; }
.alert-error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: #FF6B6B; }
.alert-info { background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.3); color: #a89cff; }
.alert-warning { background: rgba(255,217,61,0.1); border: 1px solid rgba(255,217,61,0.3); color: #ffd93d; }
.hidden { display: none !important; }

/* PAYMENT PAGE */
.payment-info { background: rgba(108,99,255,0.08); border: 1px solid rgba(108,99,255,0.2); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.payment-info h3 { font-size: 18px; margin-bottom: 12px; }
.payment-amount { font-size: 42px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* LOADER */
.loader { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin{to{transform:rotate(360deg)}}

/* RESPONSIVE */
@media(max-width:768px){
  .hero{flex-direction:column;padding-top:100px}
  .hero-image{min-height:auto}
  .hero-card{max-width:100%}
  .hero-card:nth-child(2){margin-left:0}
  .hero-card:nth-child(3){margin-left:0}
  .hero-stats{gap:20px}
  .steps{flex-direction:column}
  .step-arrow{transform:rotate(90deg)}
  .navbar .nav-links{gap:8px}
  .navbar .nav-links .btn{padding:8px 14px;font-size:13px}
}