/* OpenClaw Content Hub - Clean Responsive Styles */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

/* Navigation */
.top-nav {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-alt);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs span {
  color: var(--text-light);
  margin: 0 0.5rem;
}

/* Main Content */
main {
  padding: 3rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.article {
  max-width: 720px;
}

.article h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.article h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.article ul, .article ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}

.article li {
  margin-bottom: 0.5rem;
}

.article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 1rem 0;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-alt), white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-box p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.faq-section h2 {
  margin-top: 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
}

.sidebar-box li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.sidebar-box li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.sidebar-box a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar-box a:hover {
  text-decoration: underline;
}

/* Hub Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.hub-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hub-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.hub-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hub-card .card-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Review Box */
.review-box {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left: 4px solid var(--success);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.review-box h3 {
  color: #047857;
  margin-top: 0;
}

/* Footer */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer a {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    order: 2;
  }
  
  .hero h1 {
    font-size: 1.9rem;
  }
  
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .article h1 {
    font-size: 1.8rem;
  }
  
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.highlight-box {
  background: #fef3c7;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding-left: 1.75rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
