/* GloatHub Green/Go Theme */

:root {
  /* Green/Go color palette */
  --gl-green: #00897B;
  --gl-green-deep: #00695C;
  --gl-green-light: #B2DFDB;
  --gl-green-dark: #004D40;
  --gl-accent: #00BCD4;
  --gl-glow: rgba(0, 137, 123, 0.3);

  /* Code colors */
  --gl-code-bg: #f5f5f5;
  --gl-code-border: var(--gl-green-light);
}

[data-md-color-scheme="slate"] {
  --gl-code-bg: #263238;
  --gl-code-border: var(--gl-green-dark);
}

/* Logo gear styling */
.logo-gear {
  font-size: 2em;
  display: inline-block;
  line-height: 1;
}

/* Make site title clickable */
.md-header__topic a {
  cursor: pointer;
  pointer-events: auto;
}

/* Hide GloatHub from navigation tabs */
.md-tabs__list .md-tabs__item:first-child {
  display: none;
}

/* Hide GloatHub from left sidebar navigation */
.md-nav--primary .md-nav__list > .md-nav__item:first-child {
  display: none;
}

/* Hide the "Home" page title on homepage */
article > h1:first-of-type {
  display: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--gl-green) 0%, var(--gl-green-deep) 100%);
  color: white;
  margin: 0 1rem 3rem 0;
  box-shadow: 0 4px 20px var(--gl-glow);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
  font-size: 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 800px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-primary {
  background: white;
  color: var(--gl-green-deep);
}

.cta-primary:hover {
  background: var(--gl-green-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Pipeline Diagram */
.pipeline {
  background: var(--gl-code-bg);
  border: 2px solid var(--gl-code-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 900px;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pipeline code {
  background: none;
  padding: 0;
  color: var(--gl-green-deep);
  font-weight: 600;
}

.pipeline .arrow {
  color: var(--gl-accent);
  font-weight: bold;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--gl-code-bg);
  border: 2px solid var(--gl-code-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--gl-glow);
  border-color: var(--gl-green);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--gl-green-deep);
}

[data-md-color-scheme="slate"] .feature-title {
  color: var(--gl-green-light);
}

.feature-desc {
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
}

/* Code Blocks */
.highlight {
  border-left: 4px solid var(--gl-green);
  border-radius: 4px;
}

code {
  background: var(--gl-code-bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 2rem 0;
}

table th {
  background: var(--gl-green);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gl-code-border);
}

table tr:hover {
  background: var(--gl-code-bg);
}

/* Badge Styling */
.badge {
  display: inline-block;
  margin: 1rem 0;
}

.badge img {
  height: 32px;
  transition: transform 0.2s ease;
}

.badge:hover img {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* Footer Credits */
.footer-credit {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gl-code-border);
  opacity: 0.7;
  font-size: 0.9rem;
}
