/**
 * Zazu Power - Modal System Styles
 * Beautiful slide-up modals matching the landing page aesthetic
 */

.zazu-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zazu-modal.active {
  opacity: 1;
  pointer-events: all;
}

.zazu-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.zazu-modal__container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: linear-gradient(135deg, #FFF5E6 0%, #FFFFFF 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}

.zazu-modal.active .zazu-modal__container {
  transform: translateY(0);
}

.zazu-modal__header {
  padding: 2rem 2rem 1rem;
  border-bottom: 2px solid rgba(230, 126, 34, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-shrink: 0;
}

.zazu-modal__title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zazu-modal__subtitle {
  font-size: 1.125rem;
  color: #7F8C8D;
  margin: 0.5rem 0 0;
}

.zazu-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  color: #E67E22;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.zazu-modal__close:hover {
  background: #E67E22;
  color: white;
  transform: rotate(90deg);
}

.zazu-modal__content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Scrollbar styling */
.zazu-modal__content::-webkit-scrollbar {
  width: 8px;
}

.zazu-modal__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.zazu-modal__content::-webkit-scrollbar-thumb {
  background: rgba(230, 126, 34, 0.3);
  border-radius: 4px;
}

.zazu-modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 126, 34, 0.5);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.15);
  border-color: rgba(230, 126, 34, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 0.75rem;
}

.feature-card p {
  color: #7F8C8D;
  line-height: 1.6;
  margin: 0;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item-modal {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border-left: 4px solid #E67E22;
}

.faq-item-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 0.75rem;
}

.faq-item-modal p {
  color: #7F8C8D;
  line-height: 1.7;
  margin: 0;
}

/* Legal Content */
.legal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  line-height: 1.8;
  color: #2C3E50;
}

.legal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 2rem 0 1rem;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 1rem 0;
  color: #34495E;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-content li {
  margin: 0.5rem 0;
  color: #34495E;
}

.legal-content strong {
  color: #E67E22;
  font-weight: 600;
}

.legal-content a {
  color: #E67E22;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Interactive FAQ Accordion */
.faq-list-modal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  animation: slideUpFade 0.4s ease forwards;
}

.faq-accordion-item:hover {
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.15);
  transform: translateY(-2px);
}

.faq-accordion-item.active {
  border-color: rgba(230, 126, 34, 0.3);
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.2);
}

.faq-accordion-question {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.02) 0%, rgba(243, 156, 18, 0.02) 100%);
}

.faq-accordion-item.active .faq-accordion-question {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(243, 156, 18, 0.08) 100%);
}

.faq-accordion-question:hover {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.faq-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-icon {
  transform: scale(1.15) rotate(5deg);
}

.faq-text {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2C3E50;
}

.faq-arrow {
  font-size: 1.5rem;
  color: #E67E22;
  font-weight: bold;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-answer p {
  padding: 0 1.5rem 1.5rem;
  color: #7F8C8D;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

.faq-accordion-answer a {
  color: #E67E22;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.faq-accordion-answer a:hover {
  border-bottom-color: #E67E22;
  color: #D35400;
}

/* Responsive */
@media (max-width: 768px) {
  .zazu-modal__container {
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
  }

  .zazu-modal__header {
    padding: 1.5rem;
  }

  .zazu-modal__title {
    font-size: 1.5rem;
  }

  .zazu-modal__subtitle {
    font-size: 1rem;
  }

  .zazu-modal__content {
    padding: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card,
  .faq-item-modal,
  .legal-content {
    padding: 1.5rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.faq-item-modal {
  animation: slideUpFade 0.4s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }

.faq-item-modal:nth-child(1) { animation-delay: 0.05s; }
.faq-item-modal:nth-child(2) { animation-delay: 0.1s; }
.faq-item-modal:nth-child(3) { animation-delay: 0.15s; }
.faq-item-modal:nth-child(4) { animation-delay: 0.2s; }
.faq-item-modal:nth-child(5) { animation-delay: 0.25s; }
.faq-item-modal:nth-child(6) { animation-delay: 0.3s; }
.faq-item-modal:nth-child(7) { animation-delay: 0.35s; }

