/* Static blog pages — aligned with MyRoomsAI CRA theme (see ui/src/App.css :root) */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111827;
  --muted: #586174;
  --primary: #1f7ae7;
  --primary-dark: #0f5ec0;
  --border: #dce6f5;
  --shadow: 0 10px 30px rgba(14, 42, 83, 0.08);
  --brand-accent: #8b5cf6;
  --brand-purple: #8b5cf6;
  --Text-2: #8b5cf6;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body.static-blog-body {
  margin: 0;
  background: #ffffff;
  font-family: Inter, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  min-height: 100vh;
}

.static-blog-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.static-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 255, 0.88);
  border-bottom: 1px solid rgba(220, 230, 245, 0.9);
}

.static-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.static-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.static-brand img {
  display: block;
  height: 42px;
  width: auto;
}

.static-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.static-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.static-nav-links a:hover {
  color: var(--primary);
}

/* Match SPA navbar home: house icon + label */
.static-nav-home {
  gap: 0.45rem;
}

.static-nav-home svg {
  flex-shrink: 0;
}

.static-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.static-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted);
}

.static-main .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 65ch;
  margin: 0 0 1.5rem;
}

.static-main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.static-main h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.static-main p,
.static-main li {
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
}

.static-main ul {
  padding-left: 1.25rem;
}

.static-main ul.static-faq {
  padding-left: 0;
}

.static-main a {
  color: var(--primary);
  font-weight: 500;
}

.static-main a:hover {
  color: var(--primary-dark);
}

/* Body link styles above beat .btn-primary — restore app button text on <a class="btn"> */
.static-main a.btn {
  font-weight: 700;
}

.static-main a.btn.btn-primary,
.static-main a.btn.btn-primary:visited {
  color: var(--bg);
}

.static-main a.btn.btn-primary:hover {
  color: var(--bg);
}

.static-main a.btn.btn-ghost,
.static-main a.btn.btn-ghost:visited {
  color: var(--muted);
}

.static-main a.btn.btn-ghost:hover {
  color: var(--muted);
}

.static-hero-img {
  margin: 1.25rem 0 1.75rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 720px;
}

.static-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.static-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.static-cta-block {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.static-cta-block p {
  margin: 0 0 1rem;
}

.static-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #2f8cff);
  color: var(--bg);
  box-shadow: 0 12px 22px rgba(32, 105, 197, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary-dark), #237ce4);
  color: var(--bg);
}

.btn-ghost {
  color: var(--muted);
  background: #fff;
  border: 2px solid rgba(220, 230, 245, 1);
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.blog-card-body p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.blog-card-read {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.static-faq {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.static-faq li {
  max-width: none;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(243, 247, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.static-faq strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.static-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.static-footer-wrap {
  padding: 1.2rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.static-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.static-footer a,
.static-footer p {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.static-footer a:hover {
  color: var(--brand-accent);
}

@media (max-width: 639px) {
  .static-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .static-footer-wrap {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .static-footer-links {
    justify-content: center;
  }
}
