/**
 * GiftFlow Dashboard Helps Styles
 */

.giftflow-dashboard-helps {
  max-width: 1200px;
  margin: 2rem 0;
  padding: 0;

  // Header Section
  &__header {
    margin-bottom: 2rem;
  }

  &__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.3;
  }

  &__description {
    margin: 0;
    font-size: .9rem;
    color: #6c757d;
    line-height: 1.5;
  }

  // Content Container
  &__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  // Section
  &__section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;

    &:hover {
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    // Support section variation
    &--support {
      background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
      border-color: #e9ecef;
      text-align: center;
    }

    // Coming soon section variation
    &--coming-soon {
      background: #f8f9fa;
      border-color: #e9ecef;
      opacity: 0.8;
    }
  }

  &__section-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.4;
  }

  &__section-description {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
  }

  // Documentation List
  &__docs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  // Documentation Item
  &__doc-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;

    &:hover {
      background: #fff;
      border-color: #000;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transform: translateY(-2px);

      .giftflow-dashboard-helps__doc-link {
        color: #000;
        gap: 0.5rem;

        svg {
          transform: translateX(4px);
        }
      }
    }

    &:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

    &:active {
      transform: translateY(0);
    }
  }

  &__doc-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #1e1e1e;
    transition: all 0.2s ease;

    svg {
      width: 24px;
      height: 24px;
    }
  }

  &__doc-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
    min-width: 0;
  }

  &__doc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  &__doc-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
  }

  &__doc-description {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
  }

  &__doc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #856404;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  &__doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;

    svg {
      width: 16px;
      height: 16px;
      transition: transform 0.2s ease;
    }
  }

  // Coming Soon Section
  &__coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
  }

  &__coming-soon-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    margin-bottom: 1rem;
    opacity: 0.6;

    svg {
      width: 48px;
      height: 48px;
    }
  }

  &__coming-soon-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.4;
  }

  &__coming-soon-description {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 500px;
  }

  // Support Button
  &__support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    &:hover {
      background: rgba(0, 0, 0, 0.85);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      color: #fff;
      text-decoration: none;
    }

    &:focus {
      outline: none;
      box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

    &:active {
      transform: translateY(0);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
  }

  // Responsive Design
  @media (max-width: 768px) {
    margin: 1.5rem 0;

    &__header {
      margin-bottom: 1.5rem;
    }

    &__title {
      font-size: 1.5rem;
    }

    &__content {
      gap: 1.5rem;
    }

    &__section {
      padding: 1.25rem;
    }

    &__section-title {
      font-size: 1.125rem;
    }

    &__docs-list {
      gap: 0.75rem;
    }

    &__doc-item {
      padding: 0.875rem;
    }

    &__doc-icon {
      width: 36px;
      height: 36px;

      svg {
        width: 20px;
        height: 20px;
      }
    }
  }

  @media (max-width: 480px) {
    margin: 1rem 0;

    &__title {
      font-size: 1.25rem;
    }

    &__section {
      padding: 1rem;
    }

    &__support-button {
      width: 100%;
      padding: 0.75rem 1.25rem;
      font-size: 0.95rem;
    }
  }
}
