/* Hero Diagram Page Specific Styles */

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.input-store-row {
  display: flex;
  gap: 0.5em;
  align-items: start;
  width: 100%;
}

.console {
  flex-grow: 0;
  flex-basis: auto;
  overflow-x: auto;
}

.store {
  flex: 1 0 auto;
  min-width: 375px;
}

.query-section {
  display: block;
}

.events-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
}

/* Embedded component styles - used by elements with class embedded-component */
.embedded-component {
  margin-top: 0.5em;
}

.embedded-component[data-variant="store"] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-section {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

main {
  display: flex;
  flex-direction: column;
  gap: 3em;
}

h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: var(--accent-blue);
  text-align: center;
}

.tagline {
  font-size: 1.2em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2em;
  font-style: italic;
}

.cta-buttons {
  display: flex;
  row-gap: 2em;
  column-gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.cta-button {
  padding: 0.75em 1.5em 0.75em 3em;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  border-left: 4px solid var(--cta-accent);
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.cta-button::before {
  content: "";
  position: absolute;
  left: 1em;
  width: 18px;
  height: 18px;
  background: var(--cta-accent);
  border-radius: var(--cta-icon-radius, 2px);
  mask: var(--cta-icon-mask);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.cta-button.primary {
  --cta-accent: #10b981;
  --cta-icon-radius: 2px;
  --cta-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='currentColor' d='M10 2L3 7v11h4v-6h6v6h4V7l-7-5z'/%3E%3C/svg%3E");
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.cta-button.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 50%, #312e81 100%);
  box-shadow:
    0 8px 25px rgba(79, 70, 229, 0.4),
    0 0 20px rgba(79, 70, 229, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.cta-button.primary:hover::after {
  left: 100%;
}

.cta-button.primary:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.cta-button.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.cta-button.secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.cta-button.secondary:nth-of-type(2) {
  --cta-accent: #f59e0b;
  --cta-icon-radius: 2px;
  --cta-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='currentColor' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.cta-button.secondary:nth-of-type(3) {
  --cta-accent: #8b5cf6;
  --cta-icon-radius: 50%;
  --cta-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='currentColor' d='M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z'/%3E%3C/svg%3E");
}

/* Core Ideas Section */
.core-ideas {
  padding: 3em 0;
  background: var(--bg-secondary);
}

.core-ideas h2 {
  text-align: center;
  color: var(--accent-blue);
  font-size: 2.5em;
  margin-bottom: 2em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
}

.feature-card {
  background: var(--bg-tertiary);
  padding: 1.5em;
  border-radius: 8px;
  border: 1px solid var(--border-default);
}

.feature-card h3 {
  color: var(--accent-orange);
  margin-bottom: 0.75em;
  font-size: 1.3em;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Quickstart Section */
.quickstart {
  padding: 3em 0;
}

.quickstart h2 {
  text-align: center;
  color: var(--accent-blue);
  font-size: 2.5em;
  margin-bottom: 2em;
}

.code-block {
  max-width: 600px;
  margin: 3em auto 0 auto;
}

/* FAQ Section */
#what-is-event-streaming-store {
  margin: 0 calc(-0.5em) 1.5em calc(-0.5em);
  padding: 1em 0.5em;
}

#what-is-event-streaming-store h2 {
  font-size: 1.5em;
  color: var(--accent-blue);
  margin-bottom: 1em;
  text-align: left;
  border-bottom: 2px solid var(--border-default);
  padding-bottom: 0.5em;
}

#what-is-event-streaming-store p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1em;
  text-align: left;
  font-style: normal;
}

#what-is-event-streaming-store p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 2em 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  margin-top: 2em;
}

.footer-tagline {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1em;
  font-size: 1.1em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-blue-light);
}

@media (max-width: 499px) {
  .console {
    display: none;
  }

  .hero h1 {
    font-size: 2.5em;
  }

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

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

  .footer-links {
    gap: 1em;
  }
}
