/**
 * Component Styles
 * Reusable component-specific styles
 */

/* ============================================
   BUTTON COMPONENT
   ============================================ */

/* Base button - Use this single class for all CTA buttons */
.cta-btn {
  display: inline-block;
  background: #0d55d2;
  color: #fff;
  padding: calc(20px + var(--cta-trim-pad, 0px)) 45px; /* ADO 5994, Ken: "quiz button padding still uneven visually" (trim add-back) */
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.cta-btn:hover {
  background: transparent;
  color: #fff;
  box-shadow: inset 0px 0px 0px 2px #fff;
  text-decoration: none;
}

/* Light mode - for buttons on white/light backgrounds */
.cta-btn-light:hover,
.quiz-and-app-section .cta-btn:hover {
  color: #000;
  box-shadow: inset 0px 0px 0px 2px #000;
}

/* Responsive sizing */
@media (max-width: 767px) { /* mobile breakpoint */
  .cta-btn {
    padding: calc(15px + var(--cta-trim-pad, 0px)) 30px; /* ADO 5994, Ken: "quiz button padding still uneven visually" (trim add-back) */
    font-size: 13px;
  }
}

/* ADO 5994 (Ken, 2026-10-25: "quiz button padding still uneven visually"). The page font has more room under its baseline than over its capitals, so the capitals sat high.
   Trim every quiz-style link (a.cta-btn; <button class="cta-btn"> and the download button keep today's look) to the capitals and the baseline, and add back half of the
   difference between the line and the capitals on top and bottom (--cta-trim-pad): the height is exactly today's, the capitals sit in the middle. Where text-box is not
   supported the variable is undefined and every padding falls back to today's value. Never register --cta-trim-pad with @property. */
@supports (text-box: trim-both cap alphabetic) {
  a.cta-btn:not(.download-cta-btn) {
    text-box: trim-both cap alphabetic;
    --cta-trim-pad: calc((1lh - 1cap) / 2);
  }
}

/* ============================================
   APP STORE BADGES COMPONENT
   ============================================ */

/* Reusable app store badge container - use for App Store/Google Play links */
.app-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-badges a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.app-badges a:hover {
  opacity: 0.8;
}

.app-badges img {
  height: 45px;
  width: auto;
}

/* Larger variant for prominent sections */
.app-badges--large img {
  height: 55px;
}

@media (max-width: 767px) { /* mobile breakpoint */
  .app-badges {
    flex-direction: column;
    gap: 15px;
  }
}

/* ============================================
   VIDEO WRAPPER COMPONENT
   ============================================ */

/* Responsive 16:9 video container for iframes (YouTube, Vimeo, etc.) */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrapper embed,
.video-wrapper object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   SECTION DIVIDER COMPONENT
   ============================================ */

/* Horizontal divider line for section breaks */
.section-divider {
  width: 200px;
  height: 3px;
  background: #333;
  margin: 0 auto 30px;
}

.section-divider--light {
  background: #fff;
}

.section-divider--short {
  width: 100px;
}

/* ============================================
   SLIDESHOW COMPONENT
   ============================================ */

/* Background images for slideshow items are set in index.php using PHP constants */
.slideshow-item-1,
.slideshow-item-2,
.slideshow-item-3,
.slideshow-item-4,
.slideshow-item-5 {
  /* Background images set in page HTML using IMAGES_URL constant */
}
