/* Excel MCP Server - GitHub Pages Styling */

:root {
  --primary-color: #217346;
  --secondary-color: #107c41;
  --accent-color: #33a85c;
  --background: #ffffff;
  --text-primary: #1f1f1f;
  --text-secondary: #605e5c;
  --code-background: #f5f5f5;
  --border-color: #e1e1e1;
  --hero-gradient: linear-gradient(135deg, #217346 0%, #33a85c 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  font-size: 16px;
}

/* Site Title (header navigation) - styled like H1 but semantic div */
.site-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.site-title a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  background: var(--background);
  padding: 16px 24px 48px;
  min-height: 400px;
}

/* Hero Section */
.hero {
  background: var(--hero-gradient);
  color: white;
  padding: 32px 24px 24px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: white;
  padding: 8px;
  animation: fadeInScale 0.6s ease-out;
  border: 3px solid rgba(255,255,255,0.2);
  display: block;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
  color: #ffffff;
  margin-top: 0 !important;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.95;
  margin-bottom: 10px;
}

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Badges Section */
.badges-section {
  background: #f8f9fa;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.badges-section .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-badges {
  margin: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-badges img {
  height: 20px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-badges a:hover img {
  transform: translateY(-2px);
  opacity: 0.8;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.hero .subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Hide the default theme H1 since we have it in the hero */
.container-lg.px-3.my-5.markdown-body > h1:first-child {
  display: none;
}

h1 { font-size: 2.5rem; }
h2 {
  font-size: 2rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  margin-top: 48px;
}
h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.feature-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Callout Boxes */
.callout {
  background: linear-gradient(135deg, #f5fbf8 0%, #e8f5e9 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(33,115,70,0.1);
}

.callout strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
}

/* Lists */
ul, ol {
  margin: 16px 0 16px 24px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 8px;
  line-height: 1.6;
}

li strong {
  color: var(--primary-color);
}

/* Code Blocks */
pre {
  background: var(--code-background);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

code {
  background: var(--code-background);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #c7254e;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Buttons/Links styled as buttons */
.button-link {
  display: inline-block;
  background: var(--primary-color);
  color: white !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33,115,70,0.2);
}

.button-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33,115,70,0.3);
}

/* Installation Options */
.install-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.install-option {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
}

.install-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(33,115,70,0.15);
}

.install-option h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.install-option .badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}

/* Examples Section */
.example-section {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.example-section h4 {
  color: var(--secondary-color);
  margin-top: 0;
}

/* Keywords Section */
.keywords {
  background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 40px 24px;
  background: #f5f5f5;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }

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

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

  h2 {
    font-size: 1.6rem;
  }

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

  .container {
    padding: 0 16px;
  }

  pre {
    padding: 16px;
    font-size: 13px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background: var(--primary-color);
  color: white;
}
