/*
 * style.css — PassnExam Global Stylesheet
 *
 * Tüm sayfalarda kullanılan ortak stiller.
 * Sayfa özel stiller ilgili sayfanın <style> bloğunda tutulur.
 *
 * Hazırlanma: 2026 May 25 - 02:00:00
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light theme (soru sayfaları) */
  --bg: #f6f6fb;
  --surface: #fff;
  --border: #e8e8f0;
  --border2: #d0d0e0;
  --text: #1a1a2e;
  --text2: #555570;
  --text3: #9090a8;
  --accent: #6366f1;
  --accent-bg: rgba(99,102,241,0.08);
  --accent-border: rgba(99,102,241,0.2);
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --red: #dc2626;
  --red-bg: #fff1f2;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --font: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  background: #0a0a0f;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 1.5rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #f0f0f5;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; list-style: none; }
.nav-links a {
  color: #8888a0;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover { color: #f0f0f5; background: rgba(255,255,255,0.06); }
.nav-right { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-ghost { background: transparent; color: #8888a0; border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { color: #f0f0f5; }
.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #818cf8; }

/* User dropdown */
.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f5;
}
.user-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg,#6366f1,#818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #16161f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all .2s;
  z-index: 200;
}
.user-menu.open .user-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #c0c0d0;
  text-decoration: none;
  transition: all .2s;
}
.user-dropdown a:hover { background: rgba(255,255,255,0.06); color: #f0f0f5; }
.user-dropdown hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 4px 0; }

/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.breadcrumb {
  padding: 14px 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
}
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { color: var(--border2); }

/* ═══════════════════════════════════════
   META PILL
═══════════════════════════════════════ */
.meta-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text2);
  background: var(--bg);
}
.meta-pill.accent { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent); }
.meta-pill.green  { background: var(--green-bg);  border-color: var(--green-border);  color: var(--green); }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 800px;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal.modal-sm { max-width: 500px; }
.modal-header {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.modal-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 8px; }
.modal-icon.discuss { background: var(--accent-bg); border: 1px solid var(--accent-border); }
.modal-icon.report  { background: var(--amber-bg);  border: 1px solid var(--amber-border); }
.modal-title { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }
.modal-sub   { font-size: 13px; color: var(--text3); margin-top: 2px; }
.modal-close {
  width: 30px; height: 30px; min-width: 30px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: var(--text3); transition: all .2s; line-height: 1;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body-discuss, .modal-body {
  padding: 20px 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-footer {
  padding: 12px 24px 16px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-success {
  padding: 40px 24px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.success-icon  { font-size: 40px; }
.success-title { font-size: 17px; font-weight: 700; color: var(--text); }
.success-sub   { font-size: 13px; color: var(--text3); }

/* Form elements inside modals */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 7px;
}
.form-input, .form-textarea {
  width: 100%;
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 12px; outline: none;
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* Vote options */
.vote-options { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.vote-opt {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .2s;
  background: var(--bg); user-select: none;
}
.vote-opt:hover   { border-color: var(--accent); background: var(--accent-bg); }
.vote-opt.selected { border-color: var(--accent); background: var(--accent); }
.vote-letter { font-size: 14px; font-weight: 700; font-family: var(--mono); color: var(--accent); line-height: 1; }
.vote-opt.selected .vote-letter { color: #fff; }

/* Section divider */
.section-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; }
.section-divider span { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Vote bars */
.vote-bars { display: flex; flex-direction: column; gap: 6px; }
.vote-bar-row { display: flex; align-items: center; gap: 8px; }
.vote-bar-letter { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text3); width: 14px; flex-shrink: 0; }
.vote-bar-track  { flex: 1; height: 22px; background: var(--bg); border-radius: 7px; overflow: hidden; border: 1px solid var(--border); }
.vote-bar-fill   { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 8px; transition: width .6s ease; }
.vote-bar-count  { font-size: 11px; color: var(--text3); font-family: var(--mono); width: 28px; text-align: right; flex-shrink: 0; }

/* Comments */
.comments-list { display: flex; flex-direction: column; gap: 10px; }
.comment-card   { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; }
.comment-main   { padding: 12px 14px; }
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.comment-user   { display: flex; align-items: center; gap: 8px; }
.comment-avatar { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; font-family: var(--mono); flex-shrink: 0; }
.comment-username { font-size: 13px; font-weight: 600; color: var(--text); }
.comment-date     { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.comment-selected { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); margin-bottom: 6px; }
.sel-badge { width: 16px; height: 16px; background: var(--green); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }
.comment-text    { font-size: 13px; color: var(--text2); line-height: 1.6; }
.comment-actions { margin-top: 8px; }
.comment-reply-btn { font-size: 12px; font-weight: 500; color: var(--accent); background: none; border: none; cursor: pointer; font-family: var(--font); padding: 0; transition: opacity .2s; }
.comment-reply-btn:hover { opacity: .7; }
.reply-form-wrap { display: none; margin-top: 10px; }
.replies     { border-top: 1px solid var(--border); }
.reply-card  { padding: 10px 14px; border-bottom: 1px dashed var(--border); display: flex; gap: 10px; background: var(--surface); }
.reply-card:last-child { border-bottom: none; }
.reply-line  { width: 2px; background: var(--border); border-radius: 2px; flex-shrink: 0; margin-top: 2px; }
.reply-content { flex: 1; }
.reply-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; flex-wrap: wrap; gap: 4px; }
.reply-avatar { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; font-family: var(--mono); flex-shrink: 0; }
.reply-user  { display: flex; align-items: center; gap: 6px; }
.reply-username { font-size: 12px; font-weight: 600; color: var(--text); }
.reply-date  { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.reply-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 100px; margin-bottom: 4px; }
.reply-text  { font-size: 12px; color: var(--text2); line-height: 1.55; }

/* Report options */
.report-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.report-opt { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .2s; font-size: 13px; color: var(--text2); font-weight: 500; background: var(--bg); user-select: none; }
.report-opt:hover    { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
.report-opt.selected { border-color: var(--amber); background: var(--amber-bg); color: var(--amber); }
.report-check { width: 15px; height: 15px; min-width: 15px; border-radius: 4px; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 9px; }
.report-opt.selected .report-check::after { content: '✓'; font-weight: 700; }

/* Modal buttons */
.modal-btn-cancel {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text3);
  cursor: pointer; transition: all .2s;
}
.modal-btn-cancel:hover { color: var(--text2); border-color: var(--border2); }
.modal-btn-submit {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 9px 22px; border-radius: 9px;
  border: none; cursor: pointer; color: #fff; transition: all .2s;
}
.modal-btn-submit.discuss { background: var(--accent); }
.modal-btn-submit.discuss:hover { background: #818cf8; }
.modal-btn-submit.report  { background: var(--amber); }
.modal-btn-submit.report:hover  { background: #b45309; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer { background: #0a0a0f; border-top: 1px solid rgba(255,255,255,0.08); padding: 40px 2rem 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand p { font-size: 13px; color: #8888a0; line-height: 1.6; max-width: 220px; }
.flogo { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #f0f0f5; text-decoration: none; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #f0f0f5; margin-bottom: 14px; }
.footer-links-list { display: flex; flex-direction: column; gap: 9px; }
.footer-links-list a { font-size: 13px; color: #8888a0; text-decoration: none; transition: color .2s; }
.footer-links-list a:hover { color: #f0f0f5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: #555570; }
.footer-badges { display: flex; gap: 8px; }
.footer-badge { font-size: 11px; font-family: var(--mono); font-weight: 500; padding: 4px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1); color: #8888a0; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 999px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .modal { height: 95vh; max-height: 95vh; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 540px) {
  .report-options { grid-template-columns: 1fr; }
  .modal { max-width: calc(100vw - 1rem); }
}