/**
 * Features Section Styles
 * Styles for features.html and feature sections on other pages
 */

/* ============================================================================
   FEATURES PAGE
   ============================================================================ */

.features-main {

  h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
  }

  &>p {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 1.1em;
  }
}

/* ============================================================================
   FEATURES SECTION (HOME PAGE)
   ============================================================================ */

.features {
  padding: 4rem 1rem;
  background: white;

  .features-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
  }
}

.sub-feature-icon {
  font-size: 1.2em;
  margin-right: 0.4em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.3s ease;

  &:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
    transform: translateY(-4px);
  }

  h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
  }

  p {
    color: #666;
    font-size: 0.95rem;
  }
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
  font-size: 48px;
  font-weight: bold;
  margin-right: 0.75rem;
  vertical-align: middle;
}

/* ============================================================================
   FEATURES PAGE CONTAINER
   ============================================================================ */

#featuresContainer {
  .feature-group {
    margin-bottom: 80px;

    .feature-group-header {
      border-bottom: 2px solid #e5e7eb;
      padding-bottom: 20px;
      margin-bottom: 30px;

      h2 {
        font-size: 1.8em;
        margin-bottom: 10px;
        color: #1f2937;
      }

      p {
        color: #6b7280;
        font-size: 1.05em;
      }
    }

    .features-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;

      .feature-item {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 24px;
        transition: all 0.3s ease;

        &:hover {
          border-color: #3b82f6;
          box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
        }

        h3 {
          font-size: 1.1em;
          margin-bottom: 10px;
          color: #1f2937;
        }

        p {
          color: #6b7280;
          line-height: 1.6;
        }
      }
    }
  }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 480px) {
  .features-main {
    h1 {
      font-size: 1.8rem;
    }

    &>p {
      margin-bottom: 2rem;
      font-size: 1rem;
    }
  }
}
