/* API-Docs Site CSS Overrides */
/* This file contains api-docs specific overrides that should not be shared */

/* Font Changes for API docs consistency */
p, h1, h2, h3, h4, th, td, a, body {
  font-family: "Inter", sans-serif;
}

/* Site branding adjustments */
.gdoc-brand__img {
    max-width: 8em;
    width: auto;
    height: auto;
}

.gdoc-header .icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* API version buttons styling from shortcode */
.api-version-buttons {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #485d6b;
  border-radius: 8px;
  background: #485d6b;
}

.api-version-buttons h3 {
  margin: 0 0 15px 0;
  color: #f1f3f4;
  font-size: 1.2rem;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.version-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #6c757d;
  min-height: 60px;
}

.version-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  color: white;
  text-decoration: none;
}

.version-button:visited {
  color: white;
}

.version-number {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.version-label {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Current version styling */
.version-button.current {
  background: #37beea;
  border-color: #37beea;
}

/* Latest maintenance current version styling */
.version-button.current.latest-maintenance {
  background: #73bf44;
  border-color: #73bf44;
}

/* Previous version styling */
.version-button.previous {
  background: #aeaeae;
  border-color: #aeaeae;
}

/* Next version styling */
.version-button.next {
  background: #0795d3;
  border-color: #0795d3;
}

/* Apps banner styling for API docs header - from original custom.css */
.apps-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background-image: url('/images/Apps-Hero-Bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 5;
  padding: 1rem 0;
}

.apps-banner-content-sizing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100rem;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.apps-banner-image {
  flex: 0 1 40%;
  max-width: 40%;
  height: auto;
  object-fit: contain;
  padding-left: 1rem;
}

.apps-banner-content {
  flex: 1;
  color: #ffffff;
  text-align: left;
  font-family: 'Inter iX', Helvetica, Arial, Lucida, sans-serif;
  line-height: 1.2;
  font-size: 25px;
  font-weight: 400;
}

.apps-banner-head {
  font-family: 'Inter iX', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: #ffffff;
}

.apps-banner-text {
  margin-bottom: 1rem;
  max-width: 80%;
}

.apps-banner-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 19px;
  color: #ffffff;
  background-color: #71bf44;
  border: 1px solid #71bf44;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.apps-banner-download:hover {
  background-color: #5da835;
  color: #ffffff;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .version-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .version-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .apps-banner-content-sizing {
    flex-direction: column;
    text-align: center;
  }
  
  .apps-banner-content {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  
  .apps-banner-image {
    padding-left: 0;
    max-width: 80%;
    flex: none;
  }
  
  .apps-banner-head {
    font-size: 32px;
  }
  
  .apps-banner-text {
    font-size: 20px;
    max-width: 100%;
  }
}

/* End API-Docs Specific Overrides */