/* PromptsToPassive.com — Design system matching foraithings portfolio */
@import url("homepage.css");
@import url("refinement.css");

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

:root {
  --deep-blue:    #020c1b;
  --blue-mid:     #0a1929;
  --blue-light:   #112240;
  --ice:          #e6f1ff;
  --frost:        #a8c7fa;
  --white:        #ffffff;
  --muted:        #8892b0;
  --accent:       #00d4aa;
  --accent-hov:   #00b892;
  --accent-warm:  #ff7043;
  --text:         #ccd6f6;
  --border:       rgba(255,255,255,0.08);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--deep-blue);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 12, 27, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* ── Article pages ── */
.article-header {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--deep-blue) 0%, var(--blue-mid) 100%);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 16px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--frost);
  margin: 32px 0 12px;
}

.article-body p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.75;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--text);
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.article-body strong {
  color: var(--white);
  font-weight: 700;
}

.article-body em { font-style: italic; }

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.article-body a:hover {
  color: var(--accent-hov);
  border-bottom-color: var(--accent);
}

/* Product boxes */
.product-box {
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
}

.product-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.product-box p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-box .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

.affiliate-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 12px;
  transition: background 0.2s;
}

.affiliate-btn:hover {
  background: var(--accent-hov);
  color: var(--deep-blue);
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-body th {
  background: rgba(0, 212, 170, 0.1);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.article-body td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text);
}

.article-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Blockquotes */
.article-body blockquote {
  margin: 24px 0;
  padding: 20px;
  background: rgba(0, 212, 170, 0.05);
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.article-body blockquote p { margin-bottom: 0; }

/* FAQ */
.faq-section { margin: 48px 0 0; }

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--blue-light);
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  font-family: var(--font);
}

.faq-question:hover { background: rgba(0, 212, 170, 0.08); }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-question.active::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--blue-mid);
}

.faq-answer.open { max-height: 400px; }

.faq-answer p {
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Back to home link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-hov); }

/* Footer */
footer {
  background: var(--blue-mid);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

/* ── Static Pages ── */
.page-header {
  padding: 60px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--deep-blue) 0%, var(--blue-mid) 100%);
}

.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 14px;
}

.page-content p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.75;
}

.page-content ul, .page-content ol {
  margin: 0 0 20px 24px;
  color: var(--text);
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.page-content strong { color: var(--white); }
.page-content a { color: var(--accent); }
.page-content a:hover { color: var(--accent-hov); }

/* Nav toggle mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(2, 12, 27, 0.98);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

/* ── Tools section ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tool-card {
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.tool-card:hover { border-color: var(--accent); }

.tool-card .tool-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tool-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tool-card a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tool-card a:hover {
  color: var(--accent-hov);
  border-bottom-color: var(--accent);
}

/* ── Quick Answer box ── */
.quick-answer {
  background: rgba(0, 212, 170, 0.07);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px auto 0;
  max-width: 700px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cards { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 100%; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 769px) {
  .nav-toggle { display: none; }
}
