/* Static Styles for Pre-rendered HTML Pages */
/* These styles ensure content is readable without JavaScript */

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
}

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

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

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

a:hover {
  text-decoration: underline;
}

/* Header */
.static-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.static-header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.static-header .logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.static-header .nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.static-header .nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Main Content */
.static-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 60vh;
}

/* Breadcrumbs */
.static-breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.static-breadcrumbs a {
  color: var(--text-light);
}

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

.static-breadcrumbs span {
  color: var(--text-light);
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Hero Section */
.static-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.static-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.static-hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Cards Grid */
.static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.static-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.static-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

.static-card a {
  display: inline-block;
  font-weight: 500;
}

/* Button */
.static-btn {
  display: inline-block;
  background: var(--primary);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}

.static-btn:hover {
  background: var(--primary-light);
}

/* Section */
.static-section {
  margin: 3rem 0;
}

.static-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* List */
.static-list {
  list-style: none;
  padding: 0;
}

.static-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.static-list li:last-child {
  border-bottom: none;
}

/* Footer */
.static-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.static-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.static-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.static-footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.static-footer-col li {
  margin-bottom: 0.5rem;
}

.static-footer-col a {
  color: var(--text);
  font-size: 0.9rem;
}

.static-footer-col a:hover {
  color: var(--primary);
}

.static-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Article Content */
.static-article {
  max-width: 800px;
  margin: 0 auto;
}

.static-article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.static-article img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Related Links */
.static-related {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 2rem;
}

.static-related h3 {
  margin-top: 0;
}

.static-related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.static-related li a {
  display: inline-block;
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .static-header {
    padding: 1rem;
  }
  
  .static-header nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .static-main {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .static-hero h1 {
    font-size: 2rem;
  }
  
  .static-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide React app initially (will be shown by JS) */
#root {
  display: none;
}

/* Show static content by default */
.static-content {
  display: block;
}

/* When React loads, hide static and show app */
body.react-loaded .static-content {
  display: none;
}

body.react-loaded #root {
  display: block;
}
