/* /assets/css/home.css */

.home-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 7rem 1rem 7rem 1rem; /* Space for top and bottom navs */
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.main-title {
  font-size: 2.8rem;
  color: var(--nav-bottom-bg);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.format-note {
  font-size: 0.9rem;
  color: #777;
}

/* --- Landing Page Specific Styles --- */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 75vh;
  padding: 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 2.5rem;
  color: var(--nav-bottom-bg);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* --- Update Panel --- */
.update-panel {
  position: fixed;
  top: 20%;
  left: 0; /* Fully visible state */
  width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 0 24px 24px 0;
  display: flex;
  align-items: stretch;
  transition:
    left 0.6s ease-in-out,
    transform 0.3s ease;
}

.update-content {
  padding: 12px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.update-content h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-accent, #6a32eb);
  font-weight: 600;
}

.update-content p {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.3;
}

/* Outline Button */
.update-btn-outline {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-accent, #6a32eb);
  background: transparent;
  border: 1.5px solid var(--primary-accent, #6a32eb);
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.update-btn-outline:hover {
  background: var(--primary-accent, #6a32eb);
  color: white;
}

/* Wider Toggle Tab */
.toggle-btn {
  background: var(--primary-accent, #6a32eb);
  color: white;
  border: none;
  width: 45px;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background: #5022c3;
}

/* --- Minimized State & Animation --- */
.update-panel.minimized {
  /* We use the panel's exact width (240px) instead of 100% */
  left: calc(-240px + 30px);
  animation: popOutAnim 2s infinite ease-in-out 0.6s;
}

.update-panel.minimized:hover {
  animation: none;
  transform: translateX(10px);
}

/* The keyframes now only handle the heartbeat push */
@keyframes popOutAnim {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(10px);
  } /* Spikes right */
  20% {
    transform: translateX(0);
  } /* Snaps back */
  100% {
    transform: translateX(0);
  }
}

/* --- Survey Modal --- */
.survey-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.survey-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Lock body scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

.survey-card {
  max-width: 500px;
  position: relative;
  background: #ffffff; /* Solid bg for readability */
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    color 0.3s ease;
}

.close-btn:hover {
  color: #555;
  /* 2. Scale the button up by 20% smoothly */
  transform: scale(1.5);
}

.highlight-icon {
  font-size: 3rem;
  color: #ff9800;
  margin-bottom: 1rem;
}

.survey-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.survey-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.survey-footer {
  font-size: 0.8rem;
  color: #888;
}

/* Landing Page Adjustments */
@media (min-width: 768px) {
  .grid-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Smooth Survey Animations (NO FLICKER) --- */

/* The Anchor */
.survey-anchor {
  position: fixed;
  top: 50%;
  left: -25px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-accent, #6a32eb);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 9999;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.survey-anchor.visible {
  opacity: 1;
  pointer-events: auto;
}
.survey-anchor.visible:hover {
  left: -5px;
}

/* The Overlay */
.survey-overlay {
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

/* The Overlay when shrunk */
.survey-overlay.minimized-state {
  opacity: 0;
  visibility: hidden;
  /* Delays turning 'hidden' until the fade-out is totally finished */
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0.5s;
  pointer-events: none;
}

/* The Card */
.survey-card {
  transition:
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s ease;
  transform: translate(0, 0) scale(1);
  opacity: 1;
}

/* The Card when shrunk */
.survey-card.minimized-state {
  transform: translate(-50vw, 0) scale(0.1);
  opacity: 0;
}
@media only screen and (min-width: 320px) and (max-width: 600px) {
  .main-title {
    font-size: 2rem;
  }
  .hero-text {
    font-size: 0.95rem;
  }
} 