/* ============================================================
   KEREM SAİT — Web Sağlık & SEO Denetleyici (denetle)
   Theme: Obsidian Black & Crimson Red
   ============================================================ */

:root {
  --bg-deep: #060608;
  --bg-main: #0a0a0e;
  --bg-card: rgba(16, 16, 22, 0.78);
  --bg-card-hover: rgba(24, 24, 34, 0.92);

  --red-primary: #ff2e51;
  --red-hover: #ff4767;
  --red-glow: rgba(255, 46, 81, 0.35);
  --red-glow-subtle: rgba(255, 46, 81, 0.12);

  --text-main: #f5f5f7;
  --text-muted: #9fa3b4;
  --text-dim: #636779;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-red: rgba(255, 46, 81, 0.35);

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1140px;
}

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

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15.5px;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 46, 81, 0.14), transparent),
    radial-gradient(circle 600px at 85% 60%, rgba(185, 28, 28, 0.06), transparent);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* TOPBAR */
.topbar {
  padding: 18px 0;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.brand span {
  color: var(--red-primary);
}

.brand em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-primary), #d91438);
  color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 46, 81, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 46, 81, 0.1);
  border-color: var(--border-red);
}

/* HERO */
.hero {
  padding: 80px 0 50px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-primary);
  background: rgba(255, 46, 81, 0.08);
  border: 1px solid rgba(255, 46, 81, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--red-primary);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 620px;
  margin: 0 auto 36px;
}

/* AUDIT SEARCH BOX */
.audit-bar {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--red-glow-subtle);
  transition: var(--transition);
}

.audit-bar:focus-within {
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 40px var(--red-glow);
  border-color: var(--red-primary);
}

.audit-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.audit-input::placeholder {
  color: var(--text-dim);
}

.audit-btn {
  padding: 12px 28px;
  font-size: 15px;
}

/* DEMO PILLS */
.demo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}

.demo-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.demo-pill:hover {
  border-color: var(--border-red);
  color: var(--red-primary);
}

/* RESULTS SECTION */
.results-section {
  display: none;
  padding: 40px 0 90px;
}

.results-section.active {
  display: block;
}

/* OVERVIEW SCORE CARD */
.score-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--red-primary) var(--score-angle, 0deg), rgba(255, 255, 255, 0.05) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px var(--red-glow-subtle);
  margin-bottom: 12px;
}

.score-circle-inner {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: #0d0d12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.score-grade {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #86efac;
  font-weight: 700;
  margin-top: 4px;
}

.score-info h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 6px;
}

.score-info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.domain-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red-primary);
  background: rgba(255, 46, 81, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* 4 CATEGORIES GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-icon {
  font-size: 24px;
}

.cat-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.score-good { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.score-warn { background: rgba(234, 179, 8, 0.15); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }
.score-bad { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

.cat-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cat-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* OPEN GRAPH & AUDIT DETAILS GRID */
.details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  margin-bottom: 30px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.detail-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.detail-card > p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* OPEN GRAPH MOCKUP (WhatsApp / Twitter style) */
.og-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #14141c;
}

.og-img-preview {
  width: 100%;
  height: 180px;
  background: #1e1e28;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-mono);
}

.og-body {
  padding: 16px;
}

.og-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.og-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.og-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AUDIT CHECKS LIST */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.check-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.check-item strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

/* CTA CONVERSION CARD */
.cta-banner {
  background: linear-gradient(135deg, rgba(24, 24, 34, 0.95), rgba(12, 12, 16, 0.98));
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--red-glow-subtle);
}

.cta-banner h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .score-overview-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .audit-bar {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 14px;
    gap: 12px;
  }
  .audit-btn {
    width: 100%;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
}
