/* PGI Docs - Site-Specific Styles */
/* Glass effects are in glass.css */

:root {
  --dark-blue: #073B4C;
  --green: #06D6A0;
  --gold: #FFD166;
  --blue: #118AB2;
  --alert: #EF476F;
  --white: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #121d2b;
}

/* Main */

main {
  flex: 1;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 24px;
  text-align: center;
}

.hero__container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Glass panel docs-specific sizing */

.glass-panel {
  padding: 56px 48px;
}

/* Section layout */

.section-glass {
  margin: 0 24px 32px;
  padding: 48px 0;
}

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

/* Section Headers */

.section-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-header h2 .accent {
  color: var(--green);
}

/* Articles Grid */

#articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-card {
  display: block;
  text-decoration: none;
  color: var(--white);
  padding: 28px 24px;
}

.article-date {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.article-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Coming Soon Card */

.coming-soon-card {
  padding: 40px 32px;
  text-align: center;
}

.coming-soon-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.coming-soon-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Subscribe Form */

.email-placeholder {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.email-placeholder input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-right: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.email-placeholder input::placeholder {
  color: var(--text-secondary);
}

.email-placeholder input:focus {
  border-top-color: var(--green);
  border-bottom-color: var(--green);
}

.email-placeholder button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--green);
  color: var(--dark-blue);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.email-placeholder button:hover {
  opacity: 0.9;
}

/* Subscribe Status */

.subscribe-success {
  color: var(--green);
  font-size: 0.875rem;
  margin-top: 12px;
}

.subscribe-error {
  color: var(--alert);
  font-size: 0.875rem;
  margin-top: 12px;
}

#subscribe-status {
  text-align: center;
}

/* Empty State */

.empty-state {
  color: var(--text-secondary);
  text-align: center;
  padding: 48px 24px;
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* Footer */

footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1100px;
  width: 100%;
  margin: 48px auto 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green);
}


/* Light mode overrides for docs home */
[data-theme="light"] .hero-bg { display: none; }
[data-theme="light"] body { background: #fafafa; color: #262626; }
[data-theme="light"] .hero h1 { color: #171717; }
[data-theme="light"] .tagline { color: #525252; }
[data-theme="light"] .section-header { border-bottom-color: #e5e5e5; }
[data-theme="light"] .section-header h2 { color: #171717; }
[data-theme="light"] .glass-panel, [data-theme="light"] .glass, [data-theme="light"] .glass-heavy {
  background: rgba(255,255,255,0.9);
  border-color: #e5e5e5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .article-card.glass-card, [data-theme="light"] .glass-card {
  background: #ffffff;
  border-color: #e5e5e5;
  color: #262626;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .article-card:hover { border-color: #06D6A0; }
[data-theme="light"] .article-card h3 { color: #262626; }
[data-theme="light"] .article-card p { color: #525252; }
[data-theme="light"] .article-date { color: #b8860b; }
[data-theme="light"] .coming-soon-card h3 { color: #171717; }
[data-theme="light"] .coming-soon-card p { color: #525252; }
[data-theme="light"] footer p { color: #737373; }
[data-theme="light"] .footer-links a { color: #737373; }
[data-theme="light"] .footer-links a:hover { color: #06D6A0; }
[data-theme="light"] footer { border-top-color: #e5e5e5; }
[data-theme="light"] #subscribe-email { background: #ffffff; color: #262626; border-color: #d4d4d4; }
[data-theme="light"] #subscribe-email::placeholder { color: #a3a3a3; }

/* Responsive */

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 60px 24px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .glass-panel {
    padding: 40px 28px;
  }

  .section-glass {
    margin: 0 16px 24px;
  }

  .container {
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 48px 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .glass-panel {
    padding: 32px 20px;
  }

  .section-glass {
    margin: 0 12px 20px;
    padding: 32px 0;
  }

  .container {
    padding: 0 20px;
  }

  #articles {
    grid-template-columns: 1fr;
  }

  .article-card {
    padding: 20px;
  }

  .article-card h3 {
    font-size: 1rem;
  }

  .email-placeholder {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    text-align: center;
    margin-top: 32px;
  }
}
