:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --card-elevated: #ffffff;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --primary: #e11d48;
  --primary-hover: #be123c;
  --accent: #2563eb;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --badge-bg: #ecfdf5;
  --badge-text: #047857;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  padding: 0 16px 40px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Evrensel SVG İkon Stilleri */
.ui-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.ui-icon.sm {
  width: 14px;
  height: 14px;
}

.ui-icon.lg {
  width: 20px;
  height: 20px;
}

/* Navigasyon */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.logo strong {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #d1fae5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.ghost-btn:hover {
  background: #f1f5f9;
  color: var(--text);
}

/* Hero & Upload */
.hero-section {
  text-align: center;
  padding: 30px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}

.upload-card {
  margin-top: 16px;
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.upload-card.dragover {
  border-color: var(--accent);
  background: #eff6ff;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.primary-action-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  transition: all 0.15s ease;
}

.primary-action-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

.drop-label {
  font-size: 0.88rem;
  color: var(--text-light);
}

.quick-samples {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
  text-decoration: underline;
}

.link-btn:hover {
  color: #1d4ed8;
}

.dot {
  color: #cbd5e1;
}

.file-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

.text-danger-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
}

/* Manuel Metin Kutusu */
.manual-paste-box {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-top: 10px;
}

.paste-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

textarea {
  width: 100%;
  height: 160px;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.82rem;
  outline: none;
  resize: vertical;
  line-height: 1.45;
}

textarea:focus {
  border-color: var(--border-focus);
}

.paste-footer {
  display: flex;
  justify-content: flex-end;
}

/* Sonuç Panelleri */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.results-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.pill-count {
  background: #e2e8f0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.export-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Excel İndirme Butonu: Nabız Efekti */
.primary-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  animation: primaryPulse 2s infinite ease-in-out;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.5);
  transform: translateY(-1px);
}

@keyframes primaryPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    transform: scale(1);
  }
}

.secondary-btn {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.secondary-btn:hover {
  background: #f1f5f9;
}

.secondary-btn.sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

/* Tablo */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-container {
  width: 100%;
  max-height: 420px;
  overflow-x: auto;
  overflow-y: auto;
  font-size: 0.82rem;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #f1f5f9;
  color: #334155;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  white-space: nowrap;
}

td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: #475569;
  white-space: nowrap;
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Grafik Paneli */
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.metric-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metric-badge {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.metric-badge.active {
  background: #eff6ff;
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.chart-box {
  width: 100%;
  height: 320px;
  position: relative;
  cursor: grab;
}

.chart-box:active {
  cursor: grabbing;
}

/* Özellik Kartları (Vektör İkonlu) */
.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .features-section {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SEO Dokümantasyon */
.seo-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-article h2 {
  font-size: 1.25rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.seo-article h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.docs-table-wrapper {
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.docs-table th, .docs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.docs-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
}

.faq-item {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 8px;
}

.faq-item h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.setting-item label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-select, .form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}

.setting-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
}

.setting-checkbox p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}