/* ===================================================================
   INDEX.HTML SPECIFIC STYLES
   Styles unique to the homepage that aren't used elsewhere
   =================================================================== */

/* =================================================================
   SCROLLBAR & BASIC OVERRIDES
   ================================================================= */
::-webkit-scrollbar {
  display: none;
}

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =================================================================
   ACCESSIBILITY - SKIP LINKS
   ================================================================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* =================================================================
   ENHANCED FOCUS INDICATORS
   ================================================================= */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

/* =================================================================
   VISUALLY HIDDEN (SCREEN READER ONLY)
   ================================================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================================================================
   IMAGE LOADING STATES
   ================================================================= */
img {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

img.loaded {
  opacity: 1;
}

/* =================================================================
   SCROLL ANIMATIONS
   ================================================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   NAVBAR SCROLL EFFECT
   ================================================================= */
.navbar.scrolled,
nav.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* =================================================================
   MOBILE VIEWPORT HEIGHT FIX
   ================================================================= */
:root {
  --vh: 1vh;
}

.min-h-screen-mobile {
  min-height: calc(var(--vh, 1vh) * 100);
}

/* =================================================================
   GATEWAY CARDS (Homepage specific assessment entry)
   ================================================================= */
.gateway-card {
  padding: 2rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s;
  background: white;
}

.gateway-card:hover {
  border-color: var(--color-accent);
  background-color: #fffbeb;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   ASSESSMENT PATH STYLES
   ================================================================= */
.assessment-path {
  animation: fadeIn 0.5s ease-in;
}

.question-slide {
  display: none;
}

.question-slide.active {
  display: block;
}

.option-card {
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
}

.option-card:hover {
  border-color: var(--color-accent);
  background-color: #fffbeb;
}

input[type="radio"]:checked + .option-card {
  border-color: var(--color-accent);
  background-color: #fffbeb;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* =================================================================
   VALUES BUILDER STYLES (Interactive values exercise)
   ================================================================= */
.value-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.value-chip:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.value-chip.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.value-group {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  min-height: 100px;
}

.value-group.active {
  border-color: var(--color-accent);
  background: #fffbeb;
}

.dragging {
  opacity: 0.5;
}

.drag-over {
  background: #f3f4f6;
  border-color: var(--color-accent);
}

/* =================================================================
   ANIMATIONS & KEYFRAMES
   ================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Fade-in for modals and popups */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

/* =================================================================
   EDITOR/DEVELOPMENT STYLES (Can be removed in production)
   ================================================================= */
.highlighted-section {
  outline: 2px solid #3F20FB;
  background-color: rgba(63, 32, 251, 0.1);
}

.edit-button {
  position: absolute;
  z-index: 1000;
}

/* =================================================================
   EXIT INTENT POPUP ANIMATIONS
   ================================================================= */
#exit-intent-popup .scale-95 {
  transform: scale(0.95);
}

#exit-intent-popup .scale-100 {
  transform: scale(1);
}

#exit-intent-popup .opacity-0 {
  opacity: 0;
}

#exit-intent-popup .opacity-100 {
  opacity: 1;
}

/* =================================================================
   SOCIAL SHARE DROPDOWN
   ================================================================= */
#social-share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 50;
}

#social-share-dropdown.hidden {
  display: none;
}
