/* Features Modal - Simplified & Clean */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.modal-container {
  background: #ffffff;
  border-radius: 24px;
  max-width: 1200px;
  width: 100%;
  max-height: 85vh;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0a0a0a;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.modal-header-content p {
  font-size: 1.05rem;
  color: #666;
  margin: 0;
}

.modal-close {
  background: #f5f6f7;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.modal-close:hover {
  background: #e8eaed;
  transform: rotate(90deg);
  color: #000;
}

/* Modal Body - Split Panel */
.modal-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

/* Left Panel - Feature List (Simplified, No Categories) */
.feature-list {
  background: #fafbfc;
  border-right: 1px solid #e8eaed;
  overflow-y: auto;
  padding: 12px 0;
}

.feature-list::-webkit-scrollbar {
  width: 6px;
}

.feature-list::-webkit-scrollbar-track {
  background: transparent;
}

.feature-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.feature-category {
  margin-bottom: 0;
}

/* Hide category titles completely */
.category-title {
  display: none !important;
}

.feature-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  border-left: 3px solid transparent;
  margin: 2px 0;
}

.feature-item:hover {
  background: rgba(0, 168, 132, 0.05);
}

.feature-item.active {
  background: #ffffff;
  border-left-color: #00a884;
}

.feature-item i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #666;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feature-item.active i {
  background: linear-gradient(135deg, #00a884 0%, #00d4aa 100%);
  color: white;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  transition: color 0.25s ease;
  line-height: 1.4;
}

.feature-item.active span {
  color: #0a0a0a;
}

/* Right Panel - Feature Detail */
.feature-detail {
  overflow-y: auto;
  padding: 40px;
  position: relative;
  background: #fff;
}

.feature-detail::-webkit-scrollbar {
  width: 8px;
}

.feature-detail::-webkit-scrollbar-track {
  background: transparent;
}

.feature-detail::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.detail-content {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none;
}

.detail-content.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.detail-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.detail-icon i {
  font-size: 2.5rem;
  color: #00796b;
}

.detail-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #0a0a0a;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.detail-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
}

.detail-benefits {
  margin-bottom: 32px;
}

.detail-benefits h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.benefit-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e0f2f1;
  color: #00a884;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Mobile Responsive - Full Screen */
@media (max-width: 1024px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal-container {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }

  .modal-header {
    padding: 20px;
    flex-shrink: 0;
  }

  .modal-header-content h2 {
    font-size: 1.4rem;
  }

  .modal-header-content p {
    font-size: 0.9rem;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: hidden;
  }

  /* Mobile: Horizontal Scrolling Chips */
  .feature-list {
    border-right: none;
    border-bottom: 1px solid #e8eaed;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    flex-shrink: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .feature-list::-webkit-scrollbar {
    display: none;
  }

  .feature-category {
    display: contents;
  }

  .feature-item {
    padding: 10px 16px;
    border-left: none;
    border-radius: 20px;
    flex-direction: row;
    gap: 8px;
    text-align: left;
    min-width: auto;
    white-space: nowrap;
    background: #fff;
    border: 2px solid #e8eaed;
    flex-shrink: 0;
    margin: 0;
  }

  .feature-item:hover {
    background: #fff;
  }

  .feature-item.active {
    background: #e0f2f1;
    border-color: #00a884;
    border-left-color: #00a884;
  }

  .feature-item i {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .feature-item span {
    font-size: 0.85rem;
  }

  .feature-detail {
    padding: 24px 20px;
    overflow-y: auto;
  }

  .detail-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .detail-icon i {
    font-size: 2rem;
  }

  .detail-content h3 {
    font-size: 1.5rem;
  }

  .detail-description {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .benefit-list li {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .modal-header {
    padding: 16px;
  }

  .modal-header-content h2 {
    font-size: 1.25rem;
  }

  .modal-header-content p {
    font-size: 0.85rem;
  }

  .feature-list {
    padding: 12px;
    gap: 6px;
  }

  .feature-item {
    padding: 8px 14px;
  }

  .feature-item i {
    width: 26px;
    height: 26px;
  }

  .feature-item span {
    font-size: 0.8rem;
  }

  .feature-detail {
    padding: 20px 16px;
  }

  .detail-icon {
    width: 56px;
    height: 56px;
  }

  .detail-icon i {
    font-size: 1.75rem;
  }

  .detail-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .detail-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .benefit-list li {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .benefit-list li::before {
    width: 22px;
    height: 22px;
  }
}
