.arraysubs-reports {
  width: 100%;

  // Summary bar at top
  &__summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px 24px;
    border: 1px solid #d8e7f5;
    border-radius: 4px;
    background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
  }

  &__summary-stat {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #526277;
    font-size: 14px;
    font-weight: 600;

    svg {
      color: #0073aa;
    }

    &--free span {
      padding: 3px 10px;
      border-radius: 999px;
      background: #e6f7ef;
      color: #0a7c42;
      font-size: 13px;
      font-weight: 700;
    }

    &--pro {
      gap: 4px;

      svg {
        color: #c27800;
      }

      span {
        padding: 3px 10px;
        border-radius: 999px;
        background: #fff4e0;
        color: #9a6000;
        font-size: 13px;
        font-weight: 700;
      }
    }
  }

  // Quick navigation
  &__toc {
    margin-bottom: 32px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
  }

  &__toc-title {
    margin: 0 0 14px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  &__toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  &__toc-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all $transition-fast;

    svg {
      flex-shrink: 0;
      color: #94a3b8;
    }

    &:hover,
    &:focus {
      border-color: #0073aa;
      background: #eef8ff;
      color: #0073aa;
      text-decoration: none;

      svg {
        color: #0073aa;
      }
    }
  }

  &__toc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
  }

  // Sections
  &__sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  &__section {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow $transition-normal;

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

  &__section-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
  }

  &__section-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 40%;
    background: linear-gradient(135deg, #eef4ff 0%, #e0ecff 100%);
    color: #0073aa;
  }

  &__section-meta {
    flex: 1;
    min-width: 0;
  }

  &__section-title-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
  }

  &__section-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
  }

  &__section-description {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
  }

  // Report grid
  &__report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
  }

  // Individual report cards
  &__report-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e8edf2;
    border-radius: 4px;
    background: #fafbfc;
    text-decoration: none;
    transition: all $transition-fast;

    &:hover,
    &:focus {
      border-color: #0073aa;
      background: #f0f8ff;
      text-decoration: none;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);

      .arraysubs-reports__report-card-arrow {
        color: #0073aa;
        opacity: 1;
      }

      .arraysubs-reports__report-card-title {
        color: #0073aa;
      }
    }

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

  &__report-card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 2px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #3b6bb5;
  }

  &__report-card-content {
    flex: 1;
    min-width: 0;
  }

  &__report-card-header {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
  }

  &__report-card-title {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: color $transition-fast;
  }

  &__report-card-description {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
  }

  &__report-card-arrow {
    flex-shrink: 0;
    margin-top: 2px;
    color: #cbd5e1;
    opacity: 0;
    transition: all $transition-fast;
  }

  // Badges
  &__pro-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff4e0;
    color: #9a6000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
  }

  &__free-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6f7ef;
    color: #0a7c42;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
  }

  // Responsive
  @media (max-width: 782px) {
    &__summary-bar {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }

    &__toc-links {
      flex-direction: column;
    }

    &__report-grid {
      grid-template-columns: 1fr;
    }

    &__section {
      padding: 16px;
    }

    &__section-header {
      flex-direction: column;
      gap: 12px;
    }
  }
}
