/* ────────────────────────────────────────────────────────────────────────
   Luola brand — dark-mode reskin
   Matches luola.ai's visual language: zinc-950 surface, cyan→blue gradient,
   Outfit display + Inter body, rounded-2xl rhythm, soft cyan glow on
   primary surfaces.
   Targets the same hand-rolled HTML the Webbikettu audit serves; every
   override is scoped to body[data-brand="luola"] so Webbikettu stays
   byte-equivalent.
   Palette:
     #06b6d4 cyan-500  (primary, gradient start)
     #3b82f6 blue-600  (primary, gradient end)
     #f97316 orange-500 (selection / warning accent)
     #0a0a0a zinc-950  (page background)
     #18181b zinc-900  (card surface)
     #27272a zinc-800  (subtle border)
     #3f3f46 zinc-700  (border)
     #fafafa zinc-50   (text primary)
     #a1a1aa zinc-400  (text muted)
     #ef4444 red-500   (poor / danger)
   ──────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS variables consumed by the dashboard template ──────────────────── */
body[data-brand="luola"] {
  --brand-primary: #06b6d4;
  --brand-primary-soft: rgba(6, 182, 212, 0.08);
  --brand-secondary: #f97316;
  --brand-secondary-soft: rgba(249, 115, 22, 0.10);
  --brand-dark: #3b82f6;
  --bg: #0a0a0a;
  --card: #18181b;
  --text: #fafafa;
  --muted: #d4d4d8;
  --border: #3f3f46;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.10);
}

/* ── Page surface (radial gradient like luola.ai's landing) ────────────── */
body[data-brand="luola"] {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(6, 182, 212, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 120%, #0d1b2a 0%, #091320 35%, #0a0a0a 70%);
  background-attachment: fixed;
  color: #fafafa;
  font-family: 'Inter', 'Quicksand', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-brand="luola"] h1,
body[data-brand="luola"] h2,
body[data-brand="luola"] h3,
body[data-brand="luola"] .module-title,
body[data-brand="luola"] .ai-highlight-title,
body[data-brand="luola"] .score-number {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* ── Header / hero band ─────────────────────────────────────────────────── */
body[data-brand="luola"] .header-band {
  background: transparent;
  margin: 0 -20px 32px;
  padding: 32px 20px 40px;
  border-radius: 0;
  border-bottom: 1px solid #1f1f23;
  position: relative;
}
body[data-brand="luola"] .header-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body[data-brand="luola"] .header-band > * { position: relative; z-index: 1; }

body[data-brand="luola"] .header-wordmark-svg {
  height: 28px;
  width: auto;
  display: block;
}

body[data-brand="luola"] .lang-toggle {
  border-color: #52525b;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(8px);
  color: #e4e4e7;
  font-weight: 600;
  border-radius: 100px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
body[data-brand="luola"] .lang-toggle:hover {
  border-color: #06b6d4;
  color: #fafafa;
  background: rgba(6, 182, 212, 0.10);
}

body[data-brand="luola"] h1 {
  color: #fafafa;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
}
body[data-brand="luola"] .subtitle {
  color: #e4e4e7;
  font-size: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
body[data-brand="luola"] .tagline {
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: 24px;
}

/* ── Audit input (the hero CTA) ─────────────────────────────────────────── */
body[data-brand="luola"] .audit-form {
  max-width: 600px;
  margin: 0 auto;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body[data-brand="luola"] .audit-form input {
  background: transparent;
  border: none;
  color: #fafafa;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 14px;
}
body[data-brand="luola"] .audit-form input:focus {
  border: none;
  outline: 2px solid rgba(6, 182, 212, 0.4);
  outline-offset: -1px;
}
body[data-brand="luola"] .audit-form input::placeholder { color: #a1a1aa; }

body[data-brand="luola"] .audit-form button {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
}
body[data-brand="luola"] .audit-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  opacity: 0.95;
}
body[data-brand="luola"] .audit-form button:disabled {
  background: #27272a;
  color: #52525b;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

/* ── Loading / progress ─────────────────────────────────────────────────── */
body[data-brand="luola"] .loading-text { color: #d4d4d8; }
body[data-brand="luola"] .progress-banner { color: #22d3ee; font-weight: 600; }
body[data-brand="luola"] .skeleton {
  background: linear-gradient(90deg, #1f1f23 25%, #27272a 50%, #1f1f23 75%);
  background-size: 200% 100%;
}

/* ── Score hero ─────────────────────────────────────────────────────────── */
body[data-brand="luola"] .score-circle::before {
  background: conic-gradient(var(--score-color, #06b6d4) calc(var(--score-pct, 0) * 3.6deg), #27272a 0deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #fff calc(100% - 11px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #fff calc(100% - 11px));
}
body[data-brand="luola"] .score-number {
  color: #fafafa;
  font-weight: 700;
}
body[data-brand="luola"] .score-label { color: #d4d4d8; letter-spacing: 0.15em; font-weight: 600; }
body[data-brand="luola"] .checks-count { color: #a1a1aa; }
body[data-brand="luola"] .site-url { color: #a1a1aa; }

body[data-brand="luola"] .verdict-excellent,
body[data-brand="luola"] .verdict-good { color: #22d3ee; }
body[data-brand="luola"] .verdict-fair { color: #fb923c; }
body[data-brand="luola"] .verdict-poor { color: #f87171; }

body[data-brand="luola"] .color-good { color: #22d3ee; --score-color: #06b6d4; }
body[data-brand="luola"] .color-ok   { color: #fb923c; --score-color: #f97316; }
body[data-brand="luola"] .color-bad  { color: #f87171; --score-color: #ef4444; }
body[data-brand="luola"] .color-pending { color: #71717a; --score-color: #71717a; }

body[data-brand="luola"] .share-btn {
  border-color: #52525b;
  background: transparent;
  color: #e4e4e7;
  border-radius: 10px;
  font-weight: 600;
}
body[data-brand="luola"] .share-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border-color: #06b6d4;
  color: #fafafa;
}
body[data-brand="luola"] .share-feedback { color: #06b6d4; }

body[data-brand="luola"] .score-screenshot img {
  border: 1px solid #27272a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ── Category cards ─────────────────────────────────────────────────────── */
body[data-brand="luola"] .category-card {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 14px;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
body[data-brand="luola"] .category-card:hover {
  transform: translateY(-2px);
  border-color: #22d3ee;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.20);
}
body[data-brand="luola"] .cat-score { color: #fafafa; font-weight: 700; }
body[data-brand="luola"] .cat-name {
  color: #d4d4d8;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 11px;
}

/* ── View tabs (Yhteenveto / AI / Tarkemmat) ────────────────────────────── */
body[data-brand="luola"] .view-tab {
  background: #18181b;
  border-color: #3f3f46;
  color: #e4e4e7;
  border-radius: 10px;
  font-weight: 600;
}
body[data-brand="luola"] .view-tab:hover {
  border-color: #22d3ee;
  color: #fafafa;
}
body[data-brand="luola"] .view-tab.active {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  border-color: transparent;
}
body[data-brand="luola"] .view-tab.active-ai {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  border-color: #3b82f6;
}

/* ── AI Highlight banner (already dark in defaults — soften the borders) ── */
body[data-brand="luola"] .ai-highlight {
  background: linear-gradient(135deg, #0a0a0a 0%, #18181b 100%);
  border: 1px solid #3b82f6;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}
body[data-brand="luola"] .ai-highlight:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}
body[data-brand="luola"] .ai-highlight-badge { color: #06b6d4; }
body[data-brand="luola"] .ai-highlight-seo-label { color: #3b82f6; }

/* ── Module cards (per-collector results) ───────────────────────────────── */
body[data-brand="luola"] .module {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 16px;
}
body[data-brand="luola"] .module-header {
  border-bottom-color: #3f3f46;
}
body[data-brand="luola"] .module-title { color: #fafafa; font-weight: 700; }
body[data-brand="luola"] .module-summary { color: #e4e4e7; }
body[data-brand="luola"] .module-content { color: #e4e4e7; }
body[data-brand="luola"] .module-meta { color: #a1a1aa; }

/* ── Summary items (status pills inside modules) ────────────────────────── */
body[data-brand="luola"] .summary-item {
  background: #1f1f23;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
}
body[data-brand="luola"] .summary-item.status-good {
  border-left-color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
}
body[data-brand="luola"] .summary-item.status-ok {
  border-left-color: #fb923c;
  background: rgba(251, 146, 60, 0.08);
}
body[data-brand="luola"] .summary-item.status-bad {
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

body[data-brand="luola"] .blacklist-toggle { color: #22d3ee; font-weight: 600; }
body[data-brand="luola"] .bl-clean,
body[data-brand="luola"] .val-true { color: #22d3ee; font-weight: 600; }
body[data-brand="luola"] .bl-listed,
body[data-brand="luola"] .val-false { color: #f87171; font-weight: 600; }

/* ── Recommendations (warning-style boxes) ──────────────────────────────── */
body[data-brand="luola"] .rec,
body[data-brand="luola"] .recommendation {
  background: rgba(251, 146, 60, 0.10);
  border-left-color: #fb923c;
  color: #f4f4f5;
}

/* ── Sidebar (per-module navigation) ────────────────────────────────────── */
body[data-brand="luola"] .sidebar-item {
  background: #18181b;
  border: 1px solid #3f3f46;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
body[data-brand="luola"] .sidebar-item:hover {
  border-color: #22d3ee;
  transform: scale(1.06);
}
body[data-brand="luola"] .sidebar-item.active {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.30);
}

/* ── Contact / chat CTAs ────────────────────────────────────────────────── */
body[data-brand="luola"] .cta-btn,
body[data-brand="luola"] #auditBtn,
body[data-brand="luola"] #ctaScoreSendBtn,
body[data-brand="luola"] #ctaModuleSendBtn,
body[data-brand="luola"] #ctaBottomSendBtn,
body[data-brand="luola"] #contactSendBtn {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}
body[data-brand="luola"] .cta-btn:hover,
body[data-brand="luola"] #auditBtn:hover,
body[data-brand="luola"] #contactSendBtn:hover {
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  opacity: 0.95;
}

body[data-brand="luola"] #contact-bubble,
body[data-brand="luola"] #chat-bubble {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

body[data-brand="luola"] #contact-panel,
body[data-brand="luola"] #chat-panel {
  background: #18181b;
  border: 1px solid #27272a;
  color: #fafafa;
}
body[data-brand="luola"] #contact-panel-header,
body[data-brand="luola"] #chat-header {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
}

body[data-brand="luola"] .contact-form-feedback,
body[data-brand="luola"] .contact-learn-more,
body[data-brand="luola"] .cta-bottom-link { color: #22d3ee; font-weight: 600; }

/* ── Generic input/textarea polish for any contact / chat surface ───────── */
body[data-brand="luola"] input[type="text"]:not(.audit-form input),
body[data-brand="luola"] input[type="email"]:not(.audit-form input),
body[data-brand="luola"] textarea {
  background: #27272a;
  border: 1px solid #52525b;
  color: #fafafa;
  border-radius: 10px;
  padding: 10px 14px;
}
body[data-brand="luola"] input::placeholder,
body[data-brand="luola"] textarea::placeholder { color: #a1a1aa; }
body[data-brand="luola"] input:focus, body[data-brand="luola"] textarea:focus {
  border-color: #fb923c;
  outline: none;
}
body[data-brand="luola"] label {
  color: #d4d4d8;
  font-weight: 600;
}

/* ── Footer / misc ──────────────────────────────────────────────────────── */
body[data-brand="luola"] a { color: #22d3ee; font-weight: 500; }
body[data-brand="luola"] a:hover { color: #67e8f9; }

/* ── Responsive tweaks ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  body[data-brand="luola"] .header-band {
    padding: 24px 20px 28px;
  }
  body[data-brand="luola"] h1 { font-size: 28px; }
  body[data-brand="luola"] .header-wordmark-svg { height: 24px; }
}
