/* Neo-Brutalism Theme matching azhyshchev.de */
:root {
  --sky: #61b5e8;
  --mint: #b9ddb7;
  --cream: #f8f0dc;
  --yellow: #f5c84b;
  --pink: #efb2d5;
  --peach: #f7d4b1;
  --coral: #ff9a77;
  --rose: #ecb0c4;
  --black: #111111;
  --white: #ffffff;
}

body {
  min-height: 100vh;
  font-family: 'JetBrains Mono', monospace;
  color: var(--black);
  background: linear-gradient(120deg, var(--sky) 0 34%, var(--peach) 34% 55%, var(--coral) 55% 72%, var(--rose) 72% 100%);
  margin: 0;
  padding: 48px 24px;
  line-height: 1.6;
}

.shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  border: 3px solid var(--black);
  box-shadow: 12px 12px 0 var(--black);
  background: var(--mint);
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 820px;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  border-right: 3px solid var(--black);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.brand-badge,
.icon-box,
.social-link {
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--black);
}

.brand-badge {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-item:hover,
.social-link:hover {
  transform: translate(-2px, -2px);
}

.nav-item.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
}

.icon-box {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  box-shadow: none;
}

.nav-item.active .icon-box {
  background: var(--yellow);
  color: var(--black);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.socials {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

/* ── MAIN ── */
.main {
  background: var(--cream);
  padding: 22px;
}

.panel {
  height: 100%;
  border: 2px solid var(--black);
  background: rgba(255, 255, 255, 0.2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 500;
}

.checker-input-group {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
}

.checker-input {
  flex: 1;
  border: 3px solid var(--black);
  background: var(--white);
  padding: 15px 20px;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 4px 4px 0 var(--black);
  outline: none;
}

.checker-btn {
  background: var(--black);
  color: var(--white);
  border: 3px solid var(--black);
  padding: 15px 30px;
  font-family: inherit;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.1s;
}

.checker-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.results-section {
  border: 3px solid var(--black);
  background: var(--white);
  padding: 30px;
  box-shadow: 8px 8px 0 var(--black);
  margin-top: 40px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--black);
  padding-bottom: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.url-value {
  font-weight: 800;
  font-size: 1.2rem;
  word-break: break-all;
}

.score-summary {
  display: flex;
  align-items: center;
  gap: 15px;
}

.score-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.verdict-badge {
  border: 3px solid var(--black);
  padding: 8px 16px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--black);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.progress-container {
  height: 24px;
  border: 3px solid var(--black);
  background: var(--cream);
  margin-bottom: 40px;
  box-shadow: 4px 4px 0 var(--black);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-right: 3px solid var(--black);
  transition: width 1s ease-out;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.csr-warning {
  border: 3px solid var(--black);
  background: #fff3cd;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.csr-explainer {
  border: 3px solid var(--black);
  background: #fff3cd;
  padding: 24px 28px;
  box-shadow: 6px 6px 0 var(--black);
  margin-top: 32px;
}
.csr-explainer-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 8px;
}
.csr-explainer-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.csr-explainer-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 16px;
}
.csr-explainer-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.csr-explainer-facts li {
  font-size: 0.8rem;
  font-weight: 700;
  padding-left: 20px;
  position: relative;
}
.csr-explainer-facts li::before {
  content: "x";
  position: absolute;
  left: 0;
  color: #cc0000;
  font-weight: 800;
}
.csr-explainer-facts li.ok::before {
  content: "v";
  color: #1a7a1a;
}

.check-card {
  border: 3px solid var(--black);
  background: var(--white);
  padding: 20px;
  box-shadow: 6px 6px 0 var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.check-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--black);
}

.check-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}

.check-detail {
  font-size: 0.8rem;
  opacity: 0.7;
}

.check-recommendation {
  font-size: 0.75rem;
  margin-top: 8px;
  font-weight: 700;
  background: var(--peach);
  padding: 4px 8px;
  display: inline-block;
  border: 1px solid var(--black);
}

.check-points {
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.loading-section {
  text-align: center;
  padding: 40px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--black);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--cream);
  border-top: 5px solid var(--black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden { display: none; }

.error-message {
  border: 3px solid var(--black);
  background: var(--coral);
  padding: 15px;
  font-weight: 800;
  box-shadow: 6px 6px 0 var(--black);
  margin-top: 30px;
  text-align: center;
}

.bg-high { background-color: var(--mint); }
.bg-mid { background-color: var(--yellow); }
.bg-low { background-color: var(--coral); }

/* CTA block (shown after results when score < 80) */
.cta-block {
  margin-top: 40px;
  border: 3px solid var(--black);
  background: var(--sky);
  padding: 32px;
  box-shadow: 6px 6px 0 var(--black);
}

.cta-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 8px;
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-text {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 560px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--yellow);
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta-btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--yellow);
}

.cta-btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta-btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.cta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-tags span {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Static help section */
.help-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 3px solid var(--black);
}

.help-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 8px;
}

.help-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 28px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.help-card {
  border: 3px solid var(--black);
  background: var(--cream);
  padding: 20px;
  box-shadow: 4px 4px 0 var(--black);
}

.help-icon {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  opacity: 0.4;
}

.help-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.help-card-text {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.8;
}

/* SEO Article Section */
.seo-article {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 3px solid var(--black);
}

.seo-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 12px;
}

.seo-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.3;
}

.seo-h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 32px 0 12px;
  border-left: 4px solid var(--black);
  padding-left: 12px;
}

.seo-p {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 16px;
  max-width: 720px;
}

/* FAQ */
.seo-faq {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px dashed var(--black);
}

.faq-item {
  border: 3px solid var(--black);
  background: var(--cream);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--black);
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-q::after {
  content: '\2212';
}

.faq-a {
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.7;
  opacity: 0.85;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.2s ease;
  padding-top: 0;
}

.faq-item.open .faq-a {
  max-height: 800px;
  padding-top: 14px;
}

@media (max-width: 768px) {
  .breakdown-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .shell { box-shadow: 8px 8px 0 var(--black); }
  .help-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .seo-h2 { font-size: 1.3rem; }
}
