@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --coral: #D85A30;
  --coral-light: #FAECE7;
  --pink: #D4537E;
  --pink-light: #FBEAF0;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --green: #3B6D11;
  --green-light: #EAF3DE;
  --red: #A32D2D;
  --red-light: #FCEBEB;
  --gray: #5F5E5A;
  --gray-light: #F1EFE8;
  --text: #2C2C2A;
  --text-muted: #888780;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--purple));
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--purple); }
.nav-cta {
  background: var(--text);
  color: white !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral);
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--text);
  color: white;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--gray-light); }

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-card:nth-child(1) { background: var(--purple-light); grid-column: 1 / -1; }
.hero-card:nth-child(2) { background: var(--coral-light); }
.hero-card:nth-child(3) { background: var(--teal-light); }
.hero-card:nth-child(4) { background: var(--amber-light); grid-column: 1 / -1; }
.hero-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero-card-label {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.hero-card-sub {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ── SECTION WRAPPER ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── ARTICLE CARDS (Rehberler) ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card-header {
  padding: 2rem 1.75rem 1.5rem;
  flex: 1;
}
.article-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}
.article-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.read-time { color: var(--text-muted); }
.read-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.article-card:hover .read-link { gap: 8px; }

/* ── AI SORU CEVAP ── */
.ai-section {
  background: var(--text);
  color: white;
  padding: 5rem 2rem;
}
.ai-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ai-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: white;
}
.ai-section p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.ai-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-messages {
  padding: 1.5rem;
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.msg-user { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.msg-ai .msg-avatar { background: var(--purple-light); color: var(--purple); }
.msg-user .msg-avatar { background: var(--coral-light); color: var(--coral); }
.msg-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.msg-ai .msg-bubble {
  background: rgba(255,255,255,0.1);
  color: white;
  border-bottom-left-radius: 4px;
}
.msg-user .msg-bubble {
  background: var(--purple);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg-bubble a {
  color: #9FE1CB;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ai-typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.ai-typing.active { display: flex; }
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}
.ai-input-row {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ai-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  color: white;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.ai-input::placeholder { color: rgba(255,255,255,0.3); }
.ai-send {
  background: var(--purple);
  color: white;
  border: none;
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-send:hover { background: #3C3489; }
.ai-send:disabled { opacity: 0.4; cursor: not-allowed; }
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}
.ai-sug {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.ai-sug:hover { background: rgba(255,255,255,0.14); color: white; }

/* ── TOPICS STRIP ── */
.topics-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}
.topics-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.topic-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.15s;
  cursor: default;
}
.topic-pill:hover { transform: translateY(-2px); }
.topic-icon { font-size: 1.25rem; }

/* ── INFO BOXES (rehber sayfaları için) ── */
.info-box {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.info-box.tip { background: var(--teal-light); border-left: 4px solid var(--teal); }
.info-box.warning { background: var(--amber-light); border-left: 4px solid var(--amber); }
.info-box.note { background: var(--blue-light); border-left: 4px solid var(--blue); }
.info-box-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

/* ── COMPARISON TABLE ── */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.comp-table th {
  background: var(--gray-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--gray-light); }

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer a { color: rgba(255,255,255,0.7); }
.footer strong { color: white; }

/* ── PAGE CONTENT (Rehber sayfaları) ── */
.page-hero {
  padding: 5rem 2rem 3rem;
  text-align: center;
}
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.page-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.75rem;
}
.page-content h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--gray);
}
.page-content p { margin-bottom: 1rem; color: #3a3a38; }
.page-content ul, .page-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: #3a3a38;
}
.page-content li { margin-bottom: 0.4rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--purple);
  color: white;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.cta-banner h3 { color: white; font-size: 1.25rem; margin-bottom: 0.25rem; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.btn-white {
  background: white;
  color: var(--purple);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.9; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease both;
}
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
.fade-up:nth-child(5) { animation-delay: 0.4s; }
.fade-up:nth-child(6) { animation-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.25rem 2.5rem; }
  .hero-visual { order: -1; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-card:nth-child(1), .hero-card:nth-child(4) { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .section { padding: 3rem 1.25rem; }
  .topics-inner { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .page-hero { padding: 3rem 1.25rem 2rem; }
  .page-content { padding: 0 1.25rem 3rem; }
}
