/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* Index page styling */

.hero {
  text-align: center;
}

.hero-actions {
  margin: 0;
}

.md-grid {
  max-width: 80%;
}

.footer {
  padding-bottom: 30vh;
}

.centered-logo-text-group {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: 0.5em;
  vertical-align: middle;
}

.centered-logo-text-group img {
  height: auto;
}

.centered-logo-text-group h1 {
  margin: 0;
  text-align: left;
}

/* Hero tagline carousel: sits between the logo and the primary CTAs. */
.hero-tagline-carousel {
  max-width: 42em;
  margin: 1em auto 1.75em;
}

.hero-tagline-slides {
  display: grid;
}

.hero-tagline {
  grid-area: 1 / 1;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.hero-tagline.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-tagline-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1em;
}

.hero-tagline-dot {
  width: 0.55em;
  height: 0.55em;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--md-default-fg-color--lighter);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-tagline-dot:hover,
.hero-tagline-dot:focus-visible {
  background-color: var(--md-default-fg-color--light);
  transform: scale(1.15);
  outline: none;
}

.hero-tagline-dot.is-active {
  background-color: var(--md-primary-fg-color, #526cfe);
}

@media (prefers-reduced-motion: reduce) {
  .hero-tagline {
    transition: none;
  }

  .hero-tagline-dot {
    transition: none;
  }
}

.install-command-container {
  max-width: 600px;
  margin: 2.5em auto;
  padding: 1.5em 2em;
  background-color: var(--md-code-bg-color, #f5f5f5);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 6px rgb(0 0 0 / 5%);
  border-left: 5px solid var(--md-primary-fg-color, #526cfe);
  margin-top: 30px;
}

.install-command-container p {
  font-size: 1.1em;
  color: var(--md-default-fg-color);
  margin-bottom: -10px;
  margin-top: -10px;
}

.install-command-container p code {
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.3em 0.6em;
  background-color: var(--md-code-fg-color--light);
  border-radius: 4px;
  display: inline-block;
  line-height: 1.4;
}

.md-banner .md-button {
  font-size: 0.8em;
  padding: 0.3em 1em;
  margin-left: 0.5em;
}

h1#agent2agent-a2a-protocol {
  display: none;
}

figure.hero {
  margin-top: 0;
  margin-bottom: 10px;
}

figure.hero figcaption {
  max-width: 100%;
  width: 100%;
  margin-bottom: 0;
  text-align: left;
}

iframe.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 4px;
}

/* SDK language repository links in the header (see partials/sdk_repos.html) */
.lang-header-repos {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 0.4rem;
  margin-right: 0.2rem;
}

.lang-repos {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--md-primary-bg-color);
  padding: 4px 6px;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.lang-item:hover {
  opacity: 1;
  background-color: rgb(255 255 255 / 12%);
}

.lang-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
}

.lang-icon svg {
  width: 100%;
  height: 100%;
  fill: currentcolor;
}

.lang-label {
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Hide labels on medium screens to save room */
@media screen and (width <= 1100px) {
  .lang-label {
    display: none;
  }

  .lang-item {
    padding: 4px;
  }
}

/* Hide the SDK row entirely on small screens */
@media screen and (width <= 76.1875em) {
  .lang-header-repos {
    display: none;
  }
}
