/* SeekSolves - Shared Stylesheet */
/* Designed for multi-page architecture with consistent branding */

:root {
  --brand-purple: #5B4B8A;
  --brand-purple-light: #7B6BB0;
  --brand-coral: #F4A6A0;
  --brand-mint: #10B981;
  --bg-canvas: #F9F9FB;
  --bg-card: #FFFFFF;
  --border-light: #E5E7EB;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --semantic-green: #10B981;
  --semantic-amber: #F59E0B;
  --semantic-red: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header / Navigation */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-purple);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--brand-coral); }

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--brand-purple);
}

/* Main Content */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-coral) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  color: white;
  margin-bottom: 48px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.search-bar {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 24px;
  background: transparent;
}

.search-bar button {
  background: var(--brand-purple);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover { background: #4A3D75; }

/* Topic Categories */
.topics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.topic-pill {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.topic-pill:hover, .topic-pill.active {
  background: var(--brand-purple);
  color: white;
  border-color: var(--brand-purple);
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card .category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-purple);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.article-card .meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Article Page */
.article-full {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.article-full .breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-full .breadcrumb a {
  color: var(--brand-purple);
  text-decoration: none;
}

.article-full h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.article-full .article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.article-full h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.article-full p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-full ul, .article-full ol {
  margin: 0 0 20px 24px;
}

.article-full li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Internal Link Box */
.internal-links {
  background: #F5F3FA;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
}

.internal-links h3 {
  font-size: 16px;
  color: var(--brand-purple);
  margin-bottom: 16px;
}

.internal-links ul {
  list-style: none;
  margin: 0;
}

.internal-links li {
  margin-bottom: 8px;
}

.internal-links a {
  color: var(--brand-purple);
  text-decoration: none;
  font-size: 15px;
}

.internal-links a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: #1F1B2E;
  color: #C4B8D8;
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #C4B8D8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: #8B7FA3;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .article-full { padding: 24px; }
  .article-full h1 { font-size: 26px; }
}
